FAQ

Insufficient Memory

The html2ps script is pretty greedy and you might not have enough memory reserved for the PHP script. When this happens, it will return with an error stating so. To increase the memory:
Edit your php.ini file, set the memory_limit variable to 128K or more. Restart the web server.

Bad CSS

The html2pdf script doesn't know how to handle the !important CSS property so internal links do not get styled. If you want them to show up as they appear on the web page, go into your template and edit /lib/tpl/_template/design.css, looking for the a.wikilink# (where # is 1 or 2) pattern and edit out the !important pieces. Other css changes can be affected here also.

Blank PDF Output

  • Check that the html is being made in doku/lib/plugins/html2pdf/tmp/export_pdf.html.
  • Check that the html2pdf is working with the systemcheck link in the troubleshooting section above.
  • Especially check curl and ghostscript - you need php with curl use flag and ghostscript package installed.
  • Make sure your entire directory is read/writeable by your web server user (usually apache:apache).

Large PDF File Size

Aye, thats normal. The holy grail of easily convertable documents isn't really here yet (though I've seen a project aiming to get there), but this is the best I've seen for faithfully rendering what you see in a dokuwiki page to pdf, even if it is pretty heavy getting there. I wouldn't use it for anything more than one or two page documents - but wiki pages should ideally never get longer than that if you're using the wiki as it should be used.

Also available in: HTML TXT