Text in PDF is running over the right margin

25 views
Skip to first unread message

Gideon Vos

unread,
Apr 11, 2024, 6:53:26 AM4/11/24
to wkhtmltopdf General
I am using wkhtmltox-0.12.6-1.msvc2015-win64 to convert a REST API file (in HTML format) to PDF. Part of the schema information runs over the right margin and is therefore cut off. (example below). I tried to change the output to landscape (-o Landscape), but that did not help
margin_runover.jpg
Any tips on how to fix this?

Thanks!
Gideon

Umesh D

unread,
Mar 21, 2025, 4:33:07 AMMar 21
to wkhtmltopdf General
looks Your page size is more. Fix the page width.  
This will apply globally in page size. If you still want to control use CSS in you html body and fix it. It will work properly.
-B, --margin-bottom <unitreal> Set the page bottom margin -L, --margin-left <unitreal> Set the page left margin (default 10mm) -R, --margin-right <unitreal> Set the page right margin (default 10mm) -T, --margin-top <unitreal> Set the page top margin

Reply all
Reply to author
Forward
0 new messages