Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open embedded object. #502

Open
adiabvs opened this issue Mar 17, 2015 · 4 comments
Open

Unable to open embedded object. #502

adiabvs opened this issue Mar 17, 2015 · 4 comments

Comments

@adiabvs
Copy link

adiabvs commented Mar 17, 2015

I have added the docx object through section->addObject('');

It just showig a picture if i double click i am unable to open the object that i attached.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@sambenne
Copy link

+1 this is still an issue. It creates a bin file and it can't understand it I think. Looking at what Word actually does it it embeds the Word Document as .docx and not .bin. Yet simply changing the extension does not work.

@sambenne
Copy link

sambenne commented Feb 24, 2019

Looks like when a object is added the .rels stores it as http:https://schemas.openxmlformats.org/officeDocument/2006/relationships/oleObject but Word stores it as http:https://schemas.openxmlformats.org/officeDocument/2006/relationships/package.

Not sure if that is an issue, I have tried changing it and changing the file name to be .docx but changing the extension causes it to be corrupted so I am guessing there is something else I am missing. Will continue to investigate.

Update
These changes do make the file open however, the main file is corrupt. Not sure why.

@sambenne
Copy link

This is still an issue

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@github-actions github-actions bot added the Stale label Nov 18, 2022
@Progi1984 Progi1984 removed the Stale label Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants