c# - Embedding Pdf with OpenXml in PowerPoint fails for newer versions -


i need progammatically embed pdf documents in powerpoint via openxml. according this: embedding files open xml documents using c# possible via ole32.stgcreatestorageex methods create necessary picture oleobject.

unfortunately doesn't work current versions of pdf. on 64 bit os, seems work abobe version 9.higher version fails error code 0x8000ffff translates catastrophic failure. actual true after testing it. version 9 not work reliable.

as fallback, used pdfium google create png first page. unluckily half way, incorporated oleobject different original one. not hurt until user tries open embedded document via doubleclick within powerpoint. error message comes up, saying application of document cannot found.

here questions:

  • has information how improve procedure make working never versions?
  • does know changes pdf document are necessary incorporate similar object pdf it?

any hint highly appreciated

finally made running. have here explanation.

actually there 1 difference compared code in embedding files open xml documents using c# . when calling, stgcreatestorageex ole32.stgfmt.stgfmt_docfile has used instead of stgfmt_storage.

that makes running newer adobe versions.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -