wkhtmltopdf
Based on Print pages to Pdf, I suggest the stand alone tool wkhtmltopdf.
"c:\Program Files\wkhtmltopdf\bin\wkhtmltopdf" "http://www.example.com" test.pdf
Pandoc
wkhtmltopdf didn't work in my case, therefore I recommend Pandoc. It is a bit more complicated to get it running. With small documents, you should be able to run
pandoc http://www.example.org/ -o test.pdf
When you have UTF-8 documents with Chinese characters, you have to do it like follows:
pandoc http://blog.fefe.de/ -o test.tex
lualatex test.tex
lualatex test.tex
work-in-progress
However, in my concrete setting pandoc http://www.w3.org/TR/DOM-Parsing/ -o test.pdf
, it lead to a LaTeX error.
! LaTeX Error: Too deeply nested.
Therefore, I did create the latex file manually:
pandoc http://www.w3.org/TR/DOM-Parsing/ --standalone -o test.tex
Then, I had to disable line 78, because an \includegraphics
was within \href
.
With a hack suggested at stackoverflow (inserted at line 74, right before \begin{document}
), I also could not got it running (pdflatex test
).
I opened issue #2438 at Pandoc.