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 Jan 23, 2023 5:17 pm

I am writing to seek assistance with a problem I'm having with Spire.Doc. I am trying to parse an HTML document to PDF, but I'm having difficulty getting the required indentation on the PDF without extra space.I have tried a few solutions, such as adjusting the settings for the PDF conversion and making sure to use the latest version of Spire.Doc, but none of these have worked so far.

Html and css file attached.
Last edited by pratibha173 on Tue Jan 24, 2023 12:48 pm, edited 1 time in total.

pratibha173
 
Posts: 3
Joined: Mon Jan 23, 2023 2:59 pm

Tue Jan 24, 2023 6:13 am

Hello,

Thank you for your inquiry.
I tested your HTML file with Spire.Doc, and found that the result file displayed the same effect as the result file converted with Microsoft Word. We follow Microsoft's rules, so this is no problem on Spire.Doc.
In addition, I use the QT plugin of Spire.PDF to convert the HTML file to PDF, and the result file is consistent with the effect of using a browser to view. Please use this tutorial (Convert an HTML String to PDF with QT Plugin) to test, and I attach my test result file for your reference.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Wed Jan 25, 2023 6:49 am

I am having licenced version of spire.doc. can you please tell cost of QT plugin

pratibha173
 
Posts: 3
Joined: Mon Jan 23, 2023 2:59 pm

Wed Jan 25, 2023 11:41 am

Hello,

Thanks for your feedback.
Please kindly notice that the QT plugin is an open source plug-in. You can download it from the following link (as shown in the screenshot below):
https://www.e-iceblue.com/Tutorials/Spi ... elf.html#B

Sincerely
Abel
E-iceblue
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Wed Jan 25, 2023 9:08 pm

Thank for your quick response!
I would like to know if it's possible to add headers and footers with page numbers to every page of a PDF document when using this plugin.

For example in spire.doc we can add headers and footers with page numbers to every page of a word document after that we parse it to pdf.

pratibha173
 
Posts: 3
Joined: Mon Jan 23, 2023 2:59 pm

Thu Jan 26, 2023 12:55 pm

Hello,

Thanks for your feedback.
Our Spire.Pdf works with the QT plugin to convert Html to Pdf, but we can't control the internal logic of the QT plugin, so your requirement cannot be achieved.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.Doc