Ask Your Question

How to open embed PDF file in LibreOffice Writer?

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

pavion gravatar image


I am using LibreOffice 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?


edit retag flag offensive close merge delete


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: 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

Please see 'answer' with attached problem file.

PhilR_SoT gravatar imagePhilR_SoT ( 2019-08-14 09:58:13 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-08-14 09:57:16 +0200

I have the same problem : please find an example file attached.

I can open the file with Windows LO (version (x64)), but there's no way I can open the embedded pdf.C:\fakepath\07 _ SE_CA_MS_34_New information on substitutes for authorised uses.docx

edit flag offensive delete link more


Double-clicking the PDF icon in the document using Version: (x64) Build ID: 057fc023c990d676a43019934386b85b21a9ee99 CPU threads: 12; OS: Windows 10.0; UI render: GL; VCL: win; Locale: ru-RU (ru_RU); UI-Language: en-US Calc: threaded

opens the PDF in Adobe Reader for me just fine...

Mike Kaganski gravatar imageMike Kaganski ( 2019-08-14 10:02:28 +0200 )edit

I can also open PDF by double clicking on it in LibreOffice on Ubuntu 16.04. Have you tried extracting Writer file with zip program an rename file to PDF extension - see my comment above the question.

P.S. @Moderators: This is not the "answer" to my question, can you please move it to comments.

pavion gravatar imagepavion ( 2019-08-15 09:11:37 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 313 times

Last updated: Aug 14