Hello,
i’m using aspose.pdf to convert html files to pdf files.
public int AsposeHtmlConvertToPdf(string inputFile, string outputFile)
{
int ret = 0;
try
{
// Initialize HTMLLoadSave Options
Aspose.Pdf.HtmlLoadOptions options = new Aspose.Pdf.HtmlLoadOptions();
// Set Render to single page property
//options.IsRenderToSinglePage = true;
// Load document
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(inputFile, options);
// Save
doc.Save(outputFile);
}
catch
{
ret = -1;
}
return ret;
}
Regardless of the “IsRenderToSinglePage” option, my final pdf is one page. I would like to be able to render the widht but if my html file is big, to break the final pdf to a multi-page file. (not different files)
Thank you!