Markus wrote:

<snip/>

so we would like to see a very fast pdf generation. our environment is perl on linux. whicht tipps to speed up generation? so far it seems to make not much differnce wheter i call fop

fop -xsl ticket.xsl -xml ticket.xml -c myconfig.xml -pdf ticket.pdf

or first produce the fo-file with xalan and then do

fop -fo ticket.fo -pdf ticket.pdf

so it seems that the xslt-transformation is not time consuming, it is only one page of pdf, so it should be no problem...

Thats right, the xslt will only take a small percentage of processing time compared with the XSL-FO formatting process. Calling FOP from command line each time means there is the overhead of starting the Java JVM for each ticket. The way around this is to write a Java program which can receive requests via some mechanism, e.g. JMS Queues, watching disk files, database tables, etc etc. And then change your perl program to send a request using your choosen communication method. The details of linking Java to Perl are well off topic for this discussion group, but you should find once completed that the average ticket generation time is reduced by a good margin.


Chris


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to