We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Import/Load PDF into ODT document

Currently testing Aspose.Words API to check if meets our requirements.
On this scenario we just want to import a PDF (containing one page with an image) into a ODT final document. Important is for the PDF image to maintain it’s scale.
What we currently tried:

  1. Convert the PDF to ODT so that we can merge the created odt with the final document (still ODT):
    Document doc = new Document(path + “Pdf Document.pdf”);
    doc.Save(path + “BaseConversions.PdfToDocx.docx”);
    The converted file (pdf to odt) is missing the image and has only few label objects. See MapSched.odt attached. Tried to explicitly set false the [SkipPdfImages] as per: (https://reference.aspose.com/words/net/aspose.words.loading/pdfloadoptions/properties/skippdfimages) and didn’t made any difference
  2. Embed the PDF as an OLE object where followed the example from this thread:
    It loses scale and is linked to the file by ole which we don’t really want M. Office dependency.

Thanks in advanceSample.zip (859.5 KB)

@Remus87 I have managed to reproduce your issue with lost image on PDF import. I have logged it as WORDSNET- 23527 in our defect tracking system. We will keep you informed and let you know once it is resolved.

The issues you have found earlier (filed as WORDSNET-23527) have been fixed in this Aspose.Words for .NET 22.5 update also available on NuGet.