Hi all, I want to generate some PDF from SVG via fop/batik from inside a web application. I am using the Grails framework, BTW. Grails runs its webapps inside a tomcat.
Exec summary: Something works as a script, does not work in the tomcat, need idea where things could go wrong. PDF gets generated both times, but no custom fonts when using webapp. Long version: I took some of the sample code, wrote a small Groovy script that creates a transformer (no, i.e. default configuration), feeds it with the proper input/output streams and creates the output. Fonts are correct in the file generated. I also get plenty of output that shows that fop is configuring its fonts from the fonts on my machine. Great stuff. It also generates a .fop directory in my home and puts font caches in there. Great. Webapp: Now, for testing, I put a subset of the code into the bootstrapping code of the webapp. It creates a transcoder and transcodes an example svg string. It does a default font configuration, but completely ignores the fonts on my machine and also does not create anywhere a .fop directory. >From the documentation I did not really understand what happens. Also setting log level to trace does not help. Any suggestions? I would also be thankful for points of documentation where I could learn more. I thought "fontconfig" would be the place, but I don't see my problem represented there. Cheers, Wolfgang