I made a 200+ pages Docx with lorem ipsum content.
The output pdf after conversion is always less than 200 pages.
I tried the conversion with these codes:
- Code: Select all
FOSettings foSettings = Docx4J.createFOSettings();
foSettings.setWmlPackage(wordMLPackage);
Docx4J.toFO(foSettings, byteArrayOutputStream, Docx4J.FLAX_EXPORT_PREFER_NONXSL);
- Code: Select all
Docx4J.toPDF(wordMLPackage, byteArrayOutputStream);
Maybe row height or row spacing causes the problem.
I didn't find a solution to this problem. But I found out that if you insert a lot of newlines (Enter) in ...