Page 1 of 1

Problem with embedding the pdf in pptx

PostPosted: Wed Aug 21, 2013 8:59 am
by kaustabh
Hi,

We embedded a pdf file in the pptx slide (Insert -> Object -> Adobe Acrobat Document).
We are accessing the oleobject and updating it with the new inputstream using the following code :

OleObjectBinaryPart oleObjectBinaryPart = new OleObjectBinaryPart(new PartName("/ppt/embeddings/oleObject1.bin"));
oleObjectBinaryPart.setBinaryData(reportBlob.getBinaryStream());
pptMlPackage.getParts().getParts().put(new PartName("/ppt/embeddings/oleObject1.bin"), oleObjectBinaryPart);
pptMlPackage.save(new File("C:/pptx_out.pptx"));

While trying to open the pdf from the "pptx_out.pptx" in powerpoint 2010, we are observing the following error:
"The server application, source file, or item can't be found, or returned an unknown error. You may need to reinstall the sever application".

Can you please tell us what might be the exact problem?

Thanks,
Kaustabh

Re: Problem with embedding the pdf in pptx

PostPosted: Wed Aug 21, 2013 11:35 am
by jason
Unfortunately, there is more to it than just embedding the PDF as a binary blob. It needs to be put in the correct OLE format - refer earlier posts.

We do have a commercial extension called OLE Helper which can solve this problem for you, described at http://www.plutext.com/m/index.php/products

If you are interested, please email sales@plutext.com