Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Mar 17, 2025 7:54 pm

Hi,
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:
Untitled.png


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

andrei.chorin
 
Posts: 67
Joined: Sun Jan 08, 2023 2:36 pm

Tue Mar 18, 2025 2:11 am

Hello,

Thanks for your inquiry.
I have reproduced the issue you mentioned and logged it into our tracking system with the number SPIREDOC-11162. Our development team will further investigate and fix it. I will notify you after the fix. Sorry for the inconvenience.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 657
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Doc