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.
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
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
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.