Example for converting html to pdf using aspose pdf

<span style=“font-size:12.0pt;font-family:“Calibri”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>I want to make sure if ASPOSE PDF is fit for one of our needs.

We have an webpage built in asp .net that uses jquery.css,bootstrap.css and
other 3 rd part CSS for look and feel purposes. These paths in the html are
relative references.



I have a need to convert the webpage with all these relative references to PDF
to achieve the same look as UI.

This specifically is for the home page of the UI, which will be rendered as the
first page on the PDF.



The 2 nd page will have data retrieved from the Database and shown as a
bulleted list.



Could you please confirm or point me to an example that using Aspose PDF

1: HTML with relative reference can be generated as PDF and the look will be
maintained

2: Data from DB can be shown as bulleted list


<span style="font-size:12.0pt;font-family:"Calibri","sans-serif";

mso-fareast-font-family:“Times New Roman”;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA">

<span style=“font-size:12.0pt;font-family:“Calibri”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>I also need an example for the webpage conversion so that I can do a simple poc.
<span style=“font-size:12.0pt;font-family:“Calibri”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>The examples on the aspose site do not seem to work. The pdf generated is 0 KB .

bluefalcon.7691:
I have a need to convert the webpage with all these relative references to PDF
to achieve the same look as UI.

This specifically is for the home page of the UI, which will be rendered as the
first page on the PDF.



Could you please confirm or point me to an example that using Aspose PDF

1: HTML with relative reference can be generated as PDF and the look will be
maintained
Hi Rachana,


Thanks for contacting support.

Aspose.Pdf for .NET supports the feature to convert HTML pages into PDF format but I am afraid complex HTML is not supported. For further details, please visit HTML to PDF conversion
bluefalcon.7691:
2: Data from DB can be shown as bulleted list. The 2 nd page will have data retrieved from the Database and shown as a bulleted list.
Aspose.Pdf for .NET supports the feature to get information from Database and display it inside the PDF file. As per your requirement, you can extract the information from database and display it as Bullet list items inside the PDF. For more information, please visit Integrate Table with Database (add items inside table cells as bullet list).

bluefalcon.7691:
I also need an example for the webpage conversion so that I can do a simple poc.
The examples on the aspose site do not seem to work. The pdf generated is 0 KB .
The reason of 0KB file might be related to the fact that source/input HTML is complex and Aspose.Pdf for .NET is not able to render all the formatting tags. Can you please share some HTML/web pages which you are trying to convert and getting these issues, so that we can test the scenario at our end. We are sorry for this inconvenience.