How to open embed PDF file in LibreOffice Writer?

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

Please file a bug report and attach a sample document.

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?

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.

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.

Try to open this embedded PDF in LibreOffice.docx

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.

Try to open this embedded PDF in LibreOffice.docx

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: Can't open an embedded .pdf file from .doc 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, that I should nag with creating sample files.

I also do not use Microsoft Word, so I can’t test anything.

Work-around works fine: unzip file.

Please see ‘answer’ with attached problem file.

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

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

Double-clicking the PDF icon in the document using Version: 6.3.0.4 (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…

I can also open PDF by double clicking on it in LibreOffice 6.2.5.2 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.