Hello,
i’m evaluating the aspose.pdf .net framework.
During my firsts steps i run into some Problems getting an A4 Page from HTML.
Attached to this post the files i used to try to convert.
To Generate the PDF i use the following code in c#:
HtmlLoadOptions htmloptions = new HtmlLoadOptions(htmlPicPath);
htmloptions.PageInfo.Height = 11.6972;
htmloptions.PageInfo.Width = 8.2672;
htmloptions.PageInfo.IsLandscape = false;
// Load HTML file
Document doc = new Document(htmlFileName, htmloptions);
doc.PageInfo.Width = 8.26 * 72;
doc.PageInfo.Height = 8.26 * 72;
// Save HTML file
doc.Save(saveToFileName);
Thx alot.
Alex