We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem while converting HTML to PDF

Hi team,

We have done a HTML -> PDF conversion using Aspose.Pdf dll. The code, html files and the resulting pdf are present the attached zip. Aspose.zip (475.5 KB)

The section number and text are not top aligned. If you look at section number (2.1) and text (First open ended question with and inline question), they are not top aligned in the pdf as they are in html.

The zip files contains:-

  1. header.html
  2. footer.html
  3. report.html
  4. code.txt: The code used to convert report, header and footer html files to a pdf file.
  5. resulting_report.pdf: The resulting pdf file.

Please have a look at it asap.

Regards,
Nipun Jain

@nipunjainindia

Thank you for contacting support.

Please always create separate threads for separate problems. Moreover, we have converted the HTML to PDF and have been able to notice the difference mentioned by you PDFNET-45371.png. A ticket with ID PDFNET-45371 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

1 Like