What is the best way to convert an HTML file to PDF. I have a two page report in HTML form that I want to change to PDF. I can scan a printed copy but I would like to convert the HTML file I received to PDF. LibreOffice reformat it into a four page document, I would prefer to keep the original two page style.
Bob
On 11/23/20 3:37 PM, Bob Goodwin wrote:
What is the best way to convert an HTML file to PDF.
You can open the HTML with Firefox and then Print --> Print to File (the default is PDF).
If you want something in the command-line maybe the grand king of document conversions: pandoc.
HTH, Jorge
2020-11-23 20:37 UTC+01:00, Bob Goodwin bobgoodwin@fastmail.us:
What is the best way to convert an HTML file to PDF. I have a two page report in HTML form that I want to change to PDF. I can scan a printed copy but I would like to convert the HTML file I received to PDF. LibreOffice reformat it into a four page document, I would prefer to keep the original two page style.
I don't know if there is a best way, but you could try ebook-convert (part of the calibre package). If you're lucky, you'll be satisfied with the result of
ebook-convert your.html your.pdf
Otherwise, you'll need to read about the options here: https://manual.calibre-ebook.com/generated/en/ebook-convert.html#pdf-output-...
Andras
Have you looked at the Open Source Office Suites?
Libre Office of Apache
There "MS Word" equivalent is fluent in maney formats.
Also just cut and paste into word and save as pdf?
Thomas Dineen
On 11/23/2020 11:54 AM, Richard Ibbotson wrote:
Hi
This might work.
On 2020-11-23 14:54, Richard Ibbotson wrote:
This might work.
Yes and it was good enough for what I needed.
Thanks to everyone for the alternatives which I will save ...