We use SpireDoc for java (11.7.0) for word generation and conversion to pdf.
When we convert generated docx to pdf, lines moved across pages
After the original docx saved in MS Word, converted pdf looks ok:
Code saving as pdf:
- Code: Select all
public static void main(String[] args) {
Document document = new Document("original.docx");
document.saveToFile("original.pdf", FileFormat.PDF);
document = new Document("changed.docx");
document.saveToFile("changed.pdf", FileFormat.PDF);
}
Please help to resolve this issue.
Thanks,
Andrei Chorin