How can I automate HTML-to-PDF conversions?

后端 未结 14 916
攒了一身酷
攒了一身酷 2020-12-23 19:29

I\'ve been using htmldoc for a while, but I\'ve run into some fairly serious limitations. I need the end solution to work on a Linux box. I\'ll be calling this library/utili

14条回答
  •  猫巷女王i
    2020-12-23 20:15

    I did a bit of googling for you and came up with two options. There may be more, my google strategy was to try "webkit command-line pdf" and "gecko command-line pdf", basically looking for commandline programs that embed the two popular open-source rendering engines in command-line renderers. Here's what I found:

    Firefox command-line printer - outputs to pdf and png

    wkpdf - while this is for mac, it's probably pretty portable.

提交回复
热议问题