How to open embed PDF file in LibreOffice Writer?

asked 2018-12-10 07:14:48 +0200

pavion gravatar image

Hi,

I am using LibreOffice 6.1.3.2 on Windows7. Today I have got a Microsoft Office docx file. I see in file there is PDF file embed inside. I have double clicked on PDF icon, and I expected PDF will open, but instead just 8 little green squares at the edges of icon are displayed.

How to get embed PDF file out of LibreOffice Writer?

Thanks

edit retag flag offensive close merge delete

Comments

Please file a bug report and attach a sample document.

Mike Kaganski gravatar imageMike Kaganski ( 2018-12-10 07:25:16 +0200 )edit

This is business important document that can't be send to public bug reporter.

Digging into the problem I have found two solutions:

  1. I have unzipped docx file and found extracter_folderword\embeddings\oleObject1.bin I renamed the file from oleObject1.bin to oleObject1.pdf and file can be successfully opened with PDF viewer.

  2. I did another test. I have saved .docx file to .odt file opened it and still PDF embed file can't be launched. Unzipped .odt file and in the root folder of extracted file there is Obj116 file without file extension. I renamed the file to add Obj116.pdf and file can be opened with PDF viewer.

There got to be some easier way. Like in Writer double click on icon to open PDF file with PDF viewer. Is there some setting or something?

pavion gravatar imagepavion ( 2018-12-10 08:19:57 +0200 )edit

Is there some setting or something?

I asked you for a bug report with a sample for a purpose. It isn't possible to tell what the problem is, without seeing something. You are the one who is interested in a solution, so it's in your interest to find a way to provide a test document. E.g., you could ask the creator of the original document to provide something without sensitive info. Or you could manually change your document, editing XMLs and replacing the PDF in the file, so that it keeps the structure (and shows the problem), but doesn't have the sensitive data.

Nothing to be said without that.

Mike Kaganski gravatar imageMike Kaganski ( 2018-12-10 08:40:47 +0200 )edit

I have made example .docx with embedded PDF (as icon) and PDF opens from LibreOffice in Windows 7. We need to have your document for checking of problem. Thank you.

C:\fakepath\Try to open this embedded PDF in LibreOffice.docx

kompilainenn gravatar imagekompilainenn ( 2018-12-10 12:19:40 +0200 )edit

I can open your document in Writer and double click on it and PDF viewer opens and displays file just fine.

Up until now I have done all of the tests with launching attached Word document from e-mail. I see in this case LibreOffice opens the file in read only mode. When I double click on embed icon, nothing happens, no error nothing.

Now I have saved this file to disk and opened it with LibreOffice Writer, so file is in read & write mode. If I now click on PDF icon I get error: "Error activating object: General OLE error". I see someone else has had this problem: https://ask.libreoffice.org/en/questi... but with no solution provided how to fix the problem.

I can't ask document owner to send some sample documents, because I have got this document from board of directors. They are too important ...(more)

pavion gravatar imagepavion ( 2018-12-10 14:10:14 +0200 )edit