Talk:Pdf-export.php
Contents
error exporting recent changes as pdf
In-page rendering parameters with HTML comments
The main problem with building documents online as opposed to using a word processor is that none of the formatting options that work with respect to the printed page are usually available. But HTMLDOC allows some of these options to be included within HTML comments in the text, the most common one being <!-- PAGE BREAK -->. There's no widdow or orphan control as such, but a similar feature allows a page break to occur based on how much physical space (in mm, in or cm) is left on the current page, so one could measure the approximate size of a table for example and place <!-- NEED 10cm --> before it.
- See http://www.htmldoc.org/documentation.php/Comments.html for a complete list of comment-based HTMLDOC options
Overriding default rendering parameters
Here's an example of using article properties to override the default rendering parameters of the pdf export:
+Xml:Category:Zenovia/Business Plan |
Images
Images aren't working either, the docs say it can load all the normal kinds, and I've added the --jpeg option, but images are just blank. --Nad 08:58, 25 Jan 2007 (NZST)
- I've used htmldoc before quite a while ago and I seem to remember something about image embedding. I think you need to provide an absolute (fully qualified) URL or something like that. --Rob 09:01, 25 Jan 2007 (NZST)
- Yip that was the issue :-) images working now - I had to do a regexp to convert the href's to absolute, but of course the images use src not href so they were still relative. --Nad 10:04, 25 Jan 2007 (NZST)
Colour
PDF export very good. Can we have colour? --Rob 08:36, 25 Jan 2007 (NZST)
- According to the docs you can, but I've added the --color switch, but to no avail - I think it may only work for colours done with html font tags not CSS/style tags. --Nad 08:39, 25 Jan 2007 (NZST)