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

Free Support Forum - aspose.com

Generating PDF from Html Source


Im using the ASPOSE.PDF to convert a html source into PDF. Is it possible to have page breaks in desired places? Is it possible to do things like cell merging etc? Basically is it possible to customize and allign the PDF according to our need. Kindly reply as soon as possible as it is a very urgent requirement. Thanks in advance.



Source Code used:

//Read the html file
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();

//Instruct to delete temporary image files.
pdf.IsImagesInXmlDeleteNeeded = true;

//Produce the PDF file.


After you call the bind functions then you can go through all the Sections and set the IsNewPage property to true where you want a new page. You can also go through the tables and merge the cells.