Generating PDF from Html Source

Hi,

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.

Regards,

Imran

Source Code used:

//Read the html file
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindHTML(Server.MapPath("~/TemporaryDocuments/Email/htmlfile.htm"));

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

//Produce the PDF file.
pdf.Save(Server.MapPath("~/TemporaryDocuments/Email/pdffile.pdf"));

Hi,

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.

Thanks.