document.xml document.docx here is the link for my document. I'm trying to convert the DOCX to PDF. I'm able to covert it, but i realize the text box in the DOCX is gone after converted to PDF. How can I solve this problem? Below is the code that how I convert to PDF.
String myFilePath = "testing.docx";
File docxFile = new File("testing.docx");
WordprocessingMLPackage wordprocessingMLPackage = WordprocessingMLPackage.load(docxFile);
Mapper identifierFontMapper = new IdentityPlusMapper();
wordprocessingMLPackage.setFontMapper(identifierFontMapper);
Mapper bestMatchingMapper = new BestMatchingMapper();
wordprocessingMLPackage.setFontMapper(bestMatchingMapper);
Docx4J.toPDF(wordprocessingMLPackage, new FileOutputStream(myFilePath + ".pdf"));