What about turning off accessability?
From: shutian liao [mailto:liaoshut...@gmail.com]
Sent: 13 March 2018 05:42
Subject: Performance issue on generating PDF file by Apache FOP
It takes long time to generate PDF file from xslt file to pdf. Following is the
time spent(run by junit test on mac) on generating different size, it's almost
linear growth with the label count, attach the generated pdf(100 labels) for
I've tried the following ways to improve the performance, but looks like it
1) Using ByteArrayOutputStream
2) Set strict validation false
3) Cache font file
4) Simplify the xsl template table hierarchy
5) Set JVM -Xms4096m -Xmx4096m
I also tried to remove the barcode from label, it can help me save 60% time.
And if I remove the label title, it can save another 20% time. So looks like
it's related with how much content we want to print.
Is it a common problem that ApacheFOP need so long time to generate PDF? Is
there any way that can help to improve performance? Any one have experience or
suggestion on this?