问题
I've been trying to use this simple command to explore wkHTML2PDF abilities:
wkhtml2pdf test.htm test.pdf
It seems it doesn't support @page rules that might be included in an attached CSS file, or do I miss something? some parameters for examples?
回答1:
The short answer is No. As @skobajic mentioned, there are command line parameters to get the same functionality. I don't see it coming any time soon given that webkit doesn't support it.
https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2200
https://bugs.webkit.org/show_bug.cgi?id=15548
来源:https://stackoverflow.com/questions/30165208/does-wkhtmltopdf-support-page-rules