Difference between revisions of "Talk:Pdf-export.php"

From Organic Design wiki
(stupid loop, but error exporting recent changes to pdf)
m
 
Line 1: Line 1:
= error exporting recent changes as pdf==
+
== error exporting recent changes as pdf ==
  
 
http://wikiexpert.com/wiki/index.php?title=Special:Recentchanges&printable=1&xpath:/properties:view=pdf-export.php
 
http://wikiexpert.com/wiki/index.php?title=Special:Recentchanges&printable=1&xpath:/properties:view=pdf-export.php
  
= In-page rendering parameters with HTML comments =
+
== 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 <tt>&lt;!-- PAGE BREAK --></tt>. 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 <tt>&lt;!-- NEED 10cm --></tt> before it.
 
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 <tt>&lt;!-- PAGE BREAK --></tt>. 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 <tt>&lt;!-- NEED 10cm --></tt> before it.
 
*See http://www.htmldoc.org/documentation.php/Comments.html for a complete list of comment-based HTMLDOC options
 
*See http://www.htmldoc.org/documentation.php/Comments.html for a complete list of comment-based HTMLDOC options
  
= Overriding default rendering parameters =
+
== Overriding default rendering parameters ==
 
Here's an example of using article properties to override the default rendering parameters of the pdf export:
 
Here's an example of using article properties to override the default rendering parameters of the pdf export:
 
<table class=document-code><tr><td>[[+Xml:Category:Zenovia/Business Plan]]</table>
 
<table class=document-code><tr><td>[[+Xml:Category:Zenovia/Business Plan]]</table>
  
= Images =
+
== Images ==
 
Images aren't working either, the docs say it can load all the normal kinds, and I've added the <tt>--jpeg</tt> option, but images are just blank. --[[User:Nad|Nad]] 08:58, 25 Jan 2007 (NZST)
 
Images aren't working either, the docs say it can load all the normal kinds, and I've added the <tt>--jpeg</tt> option, but images are just blank. --[[User:Nad|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. --[[User:Rob|Rob]] 09:01, 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. --[[User:Rob|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. --[[User:Nad|Nad]] 10:04, 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. --[[User:Nad|Nad]] 10:04, 25 Jan 2007 (NZST)
  
= Colour =
+
== Colour ==
 
PDF export very good. Can we have colour? --[[User:Rob|Rob]] 08:36, 25 Jan 2007 (NZST)
 
PDF export very good. Can we have colour? --[[User:Rob|Rob]] 08:36, 25 Jan 2007 (NZST)
 
:According to the docs you can, but I've added the <tt>--color</tt> switch, but to no avail - I think it may only work for colours done with html font tags not CSS/style tags. --[[User:Nad|Nad]] 08:39, 25 Jan 2007 (NZST)
 
:According to the docs you can, but I've added the <tt>--color</tt> switch, but to no avail - I think it may only work for colours done with html font tags not CSS/style tags. --[[User:Nad|Nad]] 08:39, 25 Jan 2007 (NZST)

Latest revision as of 09:39, 7 August 2007

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)