Attached are the corresponding DOCX file and the generated PDF file.
temp.pdf (29.9 KB)
temp.docx (16.7 KB)
##java code
File file = new File(dst);
FileOutputStream os = new FileOutputStream(file);
Document doc = new Document(src);
doc.getCompatibilityOptions().setUseAltKinsokuLineBreakRules(false);
doc.setJustificationMode(JustificationMode.COMPRESS);
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
pdfSaveOptions.setUseHighQualityRendering(true);
doc.save(dst);
doc.save("temp.pdf",pdfSaveOptions);