Seeking Advice on Optimizing PDF Generation Speed in wkhtmltopdf
25 views
Skip to first unread message
Vishnu Shanmughan
unread,
Apr 8, 2024, 5:25:43 AM4/8/24
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'm converting moderately complex HTML/CSS files to PDF and files I'm converting vary in size, but some are larger than others. It takes normally 3 to 5 minutes to complete. Is there any way to optimize the speed of PDF generation.
Umesh D
unread,
Mar 21, 2025, 12:30:27 AMMar 21
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
If your Html contains images more it will take time and you can try setting up the -d, --dpi <dpi> Change the dpi explicitly (this has no
effect on X11 based systems) (default 96)
--image-dpi <integer> When embedding images scale them down to
this dpi (default 600)
--image-quality <integer> When jpeg compressing images use this
quality (default 94)