Welcome Guest Search | Active Topics | Sign In | Register

HTML to PDF being clipped Options
Development Manager
Posted: Thursday, June 30, 2016 1:39:22 AM
Rank: Newbie
Groups: Member

Joined: 9/23/2014
Posts: 1
I'm using EO.PDF version 16.1.17.0 and am currently having an issue with HTML content being clipped when I convert it using HtmlToPdf.ConvertHtml the markup is quite simple, it comes from a template created by users.

Options being set are below

HtmlToPdf.Options.PageSize = PdfPageSizes.A4;
HtmlToPdf.Options.JpegQualityLevel = 100;
HtmlToPdf.Options.AutoAdjustForDPI = false;
HtmlToPdf.Options.OutputArea = new RectangleF(0.75f, 0.77f, 6.76f, 10.12f);

The last line of text is being clipped, all the content is in the document being created (I can copy it from the document).

Is there something I should be looking for in the HTML or some other setting in HtmlToPdf.Options?



eo_support
Posted: Thursday, June 30, 2016 10:18:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,080
Hi,

This usually occurs when you have negative margins. When you have negative margins, the document area can be smaller than the actual output and results in output being clipped. You can try to look into the HTML and see if you can find the offending style and remove it, or you can append a blank DIV with a fixed size to the end of the HTML and see if that resolves the issue for you. If none works for you, you can try to isolate the problem into a test project and send the test project to us. See here for more details:

http://www.essentialobjects.com/forum/test_project.aspx

Once we have that we will investigate further.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.