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 -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- I can do all things through Christ who strengthens me. ------------------------------ Philippians 4:13 -------------------------------
On Fri, Jan 8, 2010 at 9:05 PM, fred smith <fredex at 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 at 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-- Robert Heller -- 978-544-6933 Deepwoods Software -- Download the Model Railroad System http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows heller at deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
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>-- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com
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 PDFGosh, 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! -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- The eyes of the Lord are everywhere, keeping watch on the wicked and the good. ----------------------------- Proverbs 15:3 (niv) -----------------------------