Hello, I am evaluating Aspose.PDF to convert in memory streams of HTML to PDF documents.
THe HTML documents are comprised of large HTML tables that I would like to fit to one page wide. However, when I try to do a simple test, it appears that Aspose is not respecting the CSS and the HTML just goes straight across the page.
I have tried experimenting with the IsFitToPage and IsLandscape properties of PDF and Text without success.
below is a sample of my C# code and attached is the HTML I am trying to convert. Also, attached is the resulting PDF document.
Pdf pdf2 = new Pdf();
Aspose.Pdf.Section section = pdf2.Sections.Add();
section.IsLandscape = true;
StreamReader r = File.OpenText(@"D:\mark\ctl3.htm");
Aspose.Pdf.Text text = new Text( r.ReadToEnd());
text.IsFitToPage = true;
text.IsHtmlTagSupported = true;
section.Paragraphs.Add(text);
pdf2.IsLandscape = true;
pdf2.Save(@"D:\mark\CTL_HTML3pdf.pdf");
Is it possible to force to Fit-To-Page one page wide or Shrink-To-Fit one page wide with Aspose.Pdf? I am trying to replicate what is possible to do with IE Print Options->Fit-To-Page or with Word or Excel Print Options Fit-To-Page. thank you ,mark