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