I learned how to add custom TTF font and metrics for FOP. Test project can be downloaded from http://odo.lv/ftp/temp/FOP.zip There are FOP jars and "Lucida Sans Unicode" TTF font with generated metrics file. Metrics can be created using generate_font_metrics.bat script. Test PDF can be generated with test1.bat script. Now questions are: How can I invoke customized FOP with additional parameter for my config file from Xwiki? Or how can I change default font From "Times-Roman" to "Lucida Sans Unicode"? Valdis
On 02/01/2010 09:47 PM, Valdis Vītoliņš wrote:
I'm investigating issue http://jira.xwiki.org/jira/browse/XWIKI-4724 Now I can generate right PDF using separate FOP with additional configuration files and invocation parameters. Though I don't know, how to invoke it in such way from Xwiki.
Do you have any suggestions/ideas?
I gave a workaround in a comment on that issue, in case somebody else is interested in this problem and wants an answer.