Text of EMF is lost after saving DOCX to PDF using Java

Hi,

The EMF image in the document loses the text during “convert docx to pdf”. The code is as following,

   PdfSaveOptions saveOptions = new PdfSaveOptions();
    saveOptions.setUpdateFields(false);

    saveOptions.setEmbedFullFonts(true);
    String sourcePath = inputFile.getAbsolutePath();
    Document doc = new Document(sourcePath);
   stripTrackChangesData(doc);
   doc.save(converted.getAbsolutePath(), saveOptions);

Thanks!

Ruhongtextlose.zip (558.9 KB)

@ruhongcai

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-20372 . You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-20372) have been fixed in this Aspose.Words for .NET 20.6 update and this Aspose.Words for Java 20.6 update.