Docbook PDF publication

Some helper programs : docbook2pdf (from the  the docbook-utils RPM) and xmlto.

docbook2pdf uses jw (Jade Wrapper) the result is very good. With xmlto the result is bad, note that it doesn’t use FOP yet.

To enable A4 output, change :

  • /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl for DSSSL (Jade ; docbook2pdf)
  • /usr/share/sgml/docbook/xsl-stylesheets/fo/params.xsl for XSL (xmlto)

Also, see Locale (/usr/bin/locale LC_PAPER). Because jw (Jade Wrapper) uses LC_PAPER to eventually switch to A4 ! I have to investigate the use of locale.
In case of UTF-8 problems, do export SP_ENCODING=XML !

It looks like jade doesn’t know how to use proxy ! So the only way is to tweak the catalogs : put OVERRIDE YES in the beginning of /usr/share/sgml/docbook/xml-dtd-4.4-1.0-26/catalog. It will override the system identifier usually found in the document’s doctype declaration. I guess it is usefull if you have no net too.
You will find usefull info about Catalogs from XmlSoft’s Catalogs : XML and SGML.

A usefull docbook info site is still the Docbook FAQ, even if it isn’t well ordered …

About docbook2odf, there are 2 projects : docbook2odf and DB2ODF to investigate too !

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: