Hello!
The attached patch solves a problem in UTF-8 environments when creating
PDFs. It also requires the attached fop.cfg.xml (goes into
src/main/resources/).
With that patch applied, PDFs can be generated in an UTF-8 environment,
i.e. no longer exceptions while doing so. But the generated PDFs might
not contain all characters. This depends on the font being used to
generate the PDF. To make this work under all circumstances, one would
need a font containing the complete UTF-8 character set. Unfortunately
such fonts are not freely available. But for instance the DejaVu font
(which is based on the free BitStream Vera font) would be an option,
though CJK users would need to use another font.
To switch between the different fonts, it is currently required to edit
the xhtml2fo.xsl (the patch contains a comment which shows how to switch
to a Japanese font, at least for normal text).
Maybe using several xsl files, depending on the language settings of the
page would be an option to select the correct font?
--
Michael Reinsch <mreinsch(a)mandriva.com>
------------------------------------------------------------------------