I am using the .Net version Apose.PDF to render a PDF from some dynamically generated html for a current project. After I ran into some issues with the creation of columns using divs I tried using tables as an alternative.
Hi Andrew,
//
set the html options<o:p></o:p>
HtmlLoadOptions htmlOptions = null;
htmlOptions = new HtmlLoadOptions(@"C:\pdftest\vertical+spacingl\");
htmlOptions.PageInfo.Margin.Top = 20;
htmlOptions.PageInfo.Margin.Right = 20;
htmlOptions.PageInfo.Margin.Bottom = 20;
htmlOptions.PageInfo.Margin.Left = 20;
htmlOptions.PageInfo.IsLandscape = false;
htmlOptions.PageInfo.Width = Aspose.Pdf.PageSize.A4.Width;
htmlOptions.PageInfo.Height = Aspose.Pdf.PageSize.A4.Height;
// Pass the HTML into a new Document object
Document doc = new Document(@"C:\pdftest\vertical+spacingl\documentHTML.html", htmlOptions);
// Save PDF stream
doc.Save(@“C:\pdftest\vertical+spacingl\documentHTML.pdf”);
I have attached a screenshot that shows the issue. Notice the space between some lines in the rendered pdf whereas the expected behavior is for each line to be equally spaced the same as the html screenshot
Hi Andrew,
<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38380. We
will investigate this issue in details and will keep you updated on the status
of a correction. <o:p></o:p>
We apologize for your inconvenience.
I noticed from the latest release notes that this issue is still to be resolved.
Hi Andrew,
The issues you have found earlier (filed as PDFNEWNET-38380) have been fixed in Aspose.Pdf for .NET 10.6.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.