Hi I would like to convert an html file into a pdf using the command prompt .

I tried copy abc.html abc.pdf (Did not work)

Please give me some suggestion as to how to do it .


You can't just copy from one format to another. With PDF, the easiest way is to print to PDF. Applications like CutePDF or TotalPDFConverter will do that.




I've used wkhtmltopdf to a good degree of success.

Chromium derived browsers are able to do this now in headless mode, but in my experience wkhtmltopdf seems to do this with much less overhead.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.