converting .html files to pdf from the command line
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
There's an "html2ps" converter application that should work for you. I haven't tried it though, so I don't know how well it handles links or complex formatting. It will convert your page into a postscript file.
From there you can use ps2pdf (part of the ghostscript package) to get the final pdf version (most pdf viewers can also handle ps, but the file sizes are usually about 5 times larger, so it usually pays to convert them).
That's what I would usually have advised, but the OP said that the html links should be interpreted, so I don't think print-to-file is suitable in this case.
BTW: I thought I'd mention that there's also a free pdfedit program that might be useful if you need to clean some things up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.