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)