Ville Mattila
unread,Jul 16, 2013, 3:16:59 PM7/16/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wkhtmltop...@googlegroups.com
Hi,
I need to generate many small PDF files from HTML sources and now looking possibilities to optimize wkhtmltopdf to run as quick as possible. My source HTML documents contain just very simple HTML, a few CSS definitions and some images.
Already now I have done following:
- feed the source HTML over stdin and receive via stdout
- whenever possible, embed the image as inline code (<img src="data:...." />)
- use local HTTP proxy to avoid network lookups
Command line flags used to invoke the wkhtmltopdf process are currently "-B 0 -T 0 -R 0 -L 0 --disable-smart-shrinking --exclude-from-outline --disable-javascript --disable-internal-links --disable-external-links --no-background --no-outline".
What other flags could I add to the process to speed up the process? Is there some other tricks (for example running the whole wkhtmltopdf as a daemon somehow) that I could utilize?
Best regards,
Ville