Only tangentially on topic, at best...
Given a pile of html files, comprising chapters of a book, with a single html file that serves as a table of contents to the group, how would I turn the entire book into a single PDF?
I can't think of a way to do that, all I can come up with would result in a pile of PDFs, one per html. But there's gotta be a better way.
Suggestions welcome. Thanks in advance!
(doing this on Linux, of course, which makes it slightly on topic.)
Fred
On Fri, Jan 8, 2010 at 9:05 PM, fred smith fredex@fcshome.stoneham.ma.us wrote:
Only tangentially on topic, at best...
Given a pile of html files, comprising chapters of a book, with a single html file that serves as a table of contents to the group, how would I turn the entire book into a single PDF?
I can't think of a way to do that, all I can come up with would result in a pile of PDFs, one per html. But there's gotta be a better way.
Suggestions welcome. Thanks in advance!
My guess that a combination of html2ps, ps2pdf and pdfmerge should do it :D
At Fri, 8 Jan 2010 21:05:00 -0500 CentOS mailing list centos@centos.org wrote:
Only tangentially on topic, at best...
Given a pile of html files, comprising chapters of a book, with a single html file that serves as a table of contents to the group, how would I turn the entire book into a single PDF?
I can't think of a way to do that, all I can come up with would result in a pile of PDFs, one per html. But there's gotta be a better way.
Suggestions welcome. Thanks in advance!
(doing this on Linux, of course, which makes it slightly on topic.)
Hmmm. How did you come to have the book chapters in HTML? If you really wrote the book in HTML (?!?), then one way to go would be to convert the HTML to LaTeX somehow. (Maybe using xslt or something.) The use the index html file to create a main LaTeX file that would \include{} each chapter, then run it through pdflatex. Presto, one big PDF file. And it will look 1000x better than the HTML will every look.
Fred
On Fri, Jan 08, 2010 at 09:33:14PM -0500, Robert Heller wrote:
At Fri, 8 Jan 2010 21:05:00 -0500 CentOS mailing list centos@centos.org wrote:
Only tangentially on topic, at best...
Given a pile of html files, comprising chapters of a book, with a single html file that serves as a table of contents to the group, how would I turn the entire book into a single PDF?
I can't think of a way to do that, all I can come up with would result in a pile of PDFs, one per html. But there's gotta be a better way.
Suggestions welcome. Thanks in advance!
(doing this on Linux, of course, which makes it slightly on topic.)
Hmmm. How did you come to have the book chapters in HTML? If you
Books downloaded from the Baen Free Library. I could go back and get the .rtf file and export that as PDF from OOo, but I'm curious to see if I can manage it without having to do that (you know, sort of for fun/educational purposes.)
really wrote the book in HTML (?!?), then one way to go would be to convert the HTML to LaTeX somehow. (Maybe using xslt or something.) The use the index html file to create a main LaTeX file that would \include{} each chapter, then run it through pdflatex. Presto, one big PDF file. And it will look 1000x better than the HTML will every look.
Fred
-- Robert Heller -- 978-544-6933 Deepwoods Software -- Download the Model Railroad System http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows heller@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Fri, 2010-01-08 at 21:05 -0500, fred smith wrote:
Given a pile of html files, comprising chapters of a book, with a single html file that serves as a table of contents to the group, how would I turn the entire book into a single PDF?
cat chap*.html > temp.html
Load openoffice File - New - Text document
Import - File temp.html
File - Export to PDF
On Fri, Jan 08, 2010 at 10:07:56PM -0600, Frank Cox wrote:
On Fri, 2010-01-08 at 21:05 -0500, fred smith wrote:
Given a pile of html files, comprising chapters of a book, with a single html file that serves as a table of contents to the group, how would I turn the entire book into a single PDF?
cat chap*.html > temp.html
Load openoffice File - New - Text document
Import - File temp.html
File - Export to PDF
Gosh, that works! :)
It never dawned on me that I could just blindly munge multiple HTML files together, end-to-end, and have them render properly. After opening the combined html doc it took a little editing but I now have a nice looking pdf.
thanks!