Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Mar 19, 2024 9:57 pm

Hello, How could I convert, through JAVA, html code specifically in the main body of the PDF doc, that is, leave the space later to introduce a header and footer?

How could I do it?
Thanks a lot for your help.

Sincerely,

Ricardo Ruiz

RicardoRuizA
 
Posts: 1
Joined: Mon Mar 18, 2024 1:27 pm

Wed Mar 20, 2024 3:43 am

Hello,

Thanks for your inquiry.
Please refer to this link to convert HTML to PDF:Convert HTML to PDF. You can create a PdfMargins object to define the margins of pdf page, such as "new PdfMargins (40,100, 40,100)". If you have any further questions, please feel free to write to us at any time.

Sincerely,
William
E-iceblue support team
User avatar

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

Return to Spire.PDF

cron