Welcome Guest Search | Active Topics | Sign In | Register

Line cut at end of page Options
Klaus O K
Posted: Thursday, December 8, 2022 9:10:57 AM
Rank: Newbie
Groups: Member

Joined: 10/20/2022
Posts: 5
When converting XML-files with words that will not fit in a line, the line gets cut off at the edge of the page. The rest of the characters are missing. Are there a way to get all characters included, over as many lines as necessary?

This is the code we use:

//Make sure the converter does not try to scale out to avoid line breaks
HtmlToPdf.Options.AutoFitX = HtmlToPdfAutoFitMode.None;

//This line will fail with previous versions but will work with the new version
HtmlToPdf.ConvertUrl($"{path}{filename}.xml", $"{path}{filename}.pdf");

If I remove the first statement above, the output becomes unreadable.
eo_support
Posted: Friday, December 9, 2022 11:29:06 AM
Rank: Administration
Groups: Administration

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

If the line is breakable (for example, it has space between words), then the line will be automatically broken into multiple lines. If the line is not breakable, then it will be cut off. Beside the tree structure will never wrap into multiple lines because otherwise it won't be a tree. As such if your tree is too deep, then there would be no way to avoid part of it being cut off on the right.

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.