Printing a page to PDF that is setup for inbrowser webkit printing.
39 views
Skip to first unread message
Andy Tex
unread,
Oct 9, 2016, 6:30:21 AM10/9/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wkhtmltopdf General
I have page layout that has been designed so that when printing from the browser it uses webkit to produce the layout by using the media="print". This prints out nice and neatly and exactly how I want in landscape A4.
The problem is when I parse this same page through wkhtmltopdf I get only the screen version. I have tried using the switch --print-media-type and --orientation Landscape, which looks like it has tried to use the alternative layout, but I only get like 20cm of the whole thing.
Not sure if wkhtmltopdf can support what I am doing.