Talk:Pdf-export.php

From Organic Design wiki
Revision as of 09:39, 7 August 2007 by Nad (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

error exporting recent changes as pdf

http://wikiexpert.com/wiki/index.php?title=Special:Recentchanges&printable=1&xpath:/properties:view=pdf-export.php

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.

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)