html to pdf do it yourself in N <60 seconds

    So, you need to make a PDF from some HTML. I often have this need with articles from Wikipedia (formulas are there, squiggles; W3M is enough for everything else). And to launch the browser to make export as or print in pdf, of course, there is absolutely no desire for this, and no time, because browsing has the ability to delay. I would like to solve the problem from the console, or without leaving VIM. The solution exists, the little ones are like this:

    firefox -print http://some.url.ru/page.html -printmode pdf -printfile /some/pdf/file.pdf

    This does not work with all builds of firefox, but it works with some, for example, one that is Portable and under Windows. Yeah :) some hardcore IT-promo heroes generate PDFs by launching this particular version via WiNE from PHP scripts.

    midori -s http://some.url.ru/page.html

    Midori is generally a wonderful thing, if it weren’t for a huge number of bugs, it wouldn’t have a price.

    That's all :) Thank you for your attention and successful vectorization for you.

    Also popular now: