RE: [sphinx-dev] PDF docs from HTML
Take a look at http://www.princexml.com/. We use it for converting html to pdf and find the results fantastic. -Original Message- From: sphinx-dev@googlegroups.com [mailto:sphinx-...@googlegroups.com] On Behalf Of Georg Brandl Sent: 23 August 2010 15:08 To: sphinx-dev@googlegroups.com Subject: Re: [sphinx-dev] PDF docs from HTML -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 23.08.2010 13:56, schrieb Infinity77: Hi All, I am the maintainer of the AGW library (a battery-included package for wxPython). I am currently using Sphinx Sphinx-1.0dev_20091116 for Python 2.5 and I am very happy with the results I get with it. As you can see from this page: http://xoomer.virgilio.it/infinity77/AGW_Docs/index.html I am using a pretty heavily customized theme for the HTML output. I wanted to provide also a PDF version of the docs (beside the CHM one, which is already available), but I am hitting a wall no matter what I try. A while ago I have tried with Latex, but on Windows it is a nightmare to install and use, not to mention that Latex gets stuck processing the AGW docs and spits impossible errors. I am currently trying with rst2pdf: it's been running for some time now (about an hours or so), with Python sucking 320 MB of RAM and growing. Apart from a bunch of messages like this: [ERROR] findfonts.py:249 Unknown font: DejaVu Sans-Oblique [ERROR] styles.py:81 Unknown font: DejaVu Sans-Oblique,replacing with Helvetica (which are, by the way, incorrect as I have these fonts installed and very visible), I am not getting any other output. Then, I was wondering if someone knew of a way to generate a *single* HTML file from Sphinx containing the whole documentation, which I might be able to convert to PDF using Acrobat or similar. - From Sphinx 1.0, there is indeed a singlehtml builder that should do approximately what you want. Georg -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkxygKoACgkQN9GcIYhpnLA9uQCcDOhXzFmZN86y+uNrQ5sNI6YE SOsAnjxCH0iJLh7VS7IEPNY8T5eNDSnF =C9Hq -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups sphinx-dev group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en. -- You received this message because you are subscribed to the Google Groups sphinx-dev group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
Re: [sphinx-dev] PDF docs from HTML
Or, for an open-source option, there's Objavi: http://objavi.flossmanuals.net/about.html On Mon, Sep 13, 2010 at 4:26 AM, Alastair Dent alastair.d...@imgtec.com wrote: Take a look at http://www.princexml.com/. We use it for converting html to pdf and find the results fantastic. -Original Message- From: sphinx-dev@googlegroups.com [mailto:sphinx-...@googlegroups.com] On Behalf Of Georg Brandl Sent: 23 August 2010 15:08 To: sphinx-dev@googlegroups.com Subject: Re: [sphinx-dev] PDF docs from HTML -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 23.08.2010 13:56, schrieb Infinity77: Hi All, I am the maintainer of the AGW library (a battery-included package for wxPython). I am currently using Sphinx Sphinx-1.0dev_20091116 for Python 2.5 and I am very happy with the results I get with it. As you can see from this page: http://xoomer.virgilio.it/infinity77/AGW_Docs/index.html I am using a pretty heavily customized theme for the HTML output. I wanted to provide also a PDF version of the docs (beside the CHM one, which is already available), but I am hitting a wall no matter what I try. A while ago I have tried with Latex, but on Windows it is a nightmare to install and use, not to mention that Latex gets stuck processing the AGW docs and spits impossible errors. I am currently trying with rst2pdf: it's been running for some time now (about an hours or so), with Python sucking 320 MB of RAM and growing. Apart from a bunch of messages like this: [ERROR] findfonts.py:249 Unknown font: DejaVu Sans-Oblique [ERROR] styles.py:81 Unknown font: DejaVu Sans-Oblique,replacing with Helvetica (which are, by the way, incorrect as I have these fonts installed and very visible), I am not getting any other output. Then, I was wondering if someone knew of a way to generate a *single* HTML file from Sphinx containing the whole documentation, which I might be able to convert to PDF using Acrobat or similar. - From Sphinx 1.0, there is indeed a singlehtml builder that should do approximately what you want. Georg -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkxygKoACgkQN9GcIYhpnLA9uQCcDOhXzFmZN86y+uNrQ5sNI6YE SOsAnjxCH0iJLh7VS7IEPNY8T5eNDSnF =C9Hq -END PGP SIGNATURE- -- You received this message because you are subscribed to the Google Groups sphinx-dev group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en. -- You received this message because you are subscribed to the Google Groups sphinx-dev group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en. -- You received this message because you are subscribed to the Google Groups sphinx-dev group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
Re: [sphinx-dev] PDF docs from HTML
On Monday 23 August 2010 10:56:12 Infinity77 wrote: A while ago I have tried with Latex, but on Windows it is a nightmare to install and use, not to mention that Latex gets stuck processing the AGW docs and spits impossible errors. I am currently trying with rst2pdf: it's been running for some time now (about an hours or so), with Python sucking 320 MB of RAM and growing. Apart from a bunch of messages like this: [ERROR] findfonts.py:249 Unknown font: DejaVu Sans-Oblique [ERROR] styles.py:81 Unknown font: DejaVu Sans-Oblique,replacing with Helvetica (which are, by the way, incorrect as I have these fonts installed and very visible), rst2pdf can't just use the system fonts, it has to find the font **files** and that's tricky, specially on operating systems I don't use. The easiest way to make this work is to see where the fonts are installed and pass it in the pdf_font_path option. I am not getting any other output. You could set it to be more verbose, using the pdf_verbosity option. -- You received this message because you are subscribed to the Google Groups sphinx-dev group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.