On 3/22/06, Michael Reinsch <mreinsch(a)mandriva.com> wrote:
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?
Hi,
I tried, and it seems cool.
Does the "Mincho" font is free? Maybe, we can put it in the font
directory, and like you say we can create several xsl files for
differents languages.
Can you do it and the code for using this files depending on the user language?
Can you also write a little text about configuring the pdf export for
a special set of characters?
Thanks a lot for your contribution,
Jérémi
--
Blog:
http://www.jeremi.info
LinkedIn:
https://www.linkedin.com/profile?viewProfile=&key=1437724
Project Manager XWiki:
http://www.xwiki.org
skype: jeremi23 -- msn et gtalk : jeremi23(a)gmail.com