Run the following code to convert docx to pdf, reference is shown in pdf.
Attached are original docx file and converted pdf file.
final PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.setWarningCallback(new WarningCallback());
File converted = PathUtils.createTempFile("SB_figure_test-Converted.pdf");
try {
Document doc = new Document("SB_figure_test.docx");
stripTrackChangesData(doc);
doc.save(converted.getAbsolutePath(), saveOptions);
} catch (FileCorruptedException e) {
LOG.warn(WARNING_ASPOSE_FILE_CORRUPTED, e);
} catch (Exception e) {<a class="attachment" href="/uploads/default/8554">reference_shown.zip</a> (463.2 KB)
throw e;
}
How could get rid of reference in the pdf? Thanks!reference_shown.zip (463.2 KB)