java - ApacheFOP svg background very slow -


i'm using apachefop render pdfs. in these pdf draw rounded box using svg edges:

<fo:table-cell     number-columns-spanned="2"     background-image="/images/top-left.svg"     background-repeat="no-repeat">         <fo:block/> </fo:table-cell> 

where top-left.svg file pretty simple:

<svg width="10px" height="10px" xmlns="http://www.w3.org/2000/svg">     <circle cx="10px" cy="10px" r="9.5px" stroke="black" stroke-width="1px" fill="none" /> </svg> 

the same repeated top-right, bottom-left , bottom-right.

the problem that, after updating apachefop 0.95 apachefop 2.1 rendering in production server takes ~15 seconds each svg. cannot reproduce issue on computer.

both developer desktop , production server running linux.

is there system factor slow down svg rendering much?

thanks

the delay caused downloading of dtd schema of each svg. hard spot because download performed barcode4j , not apachefop itself. more barcodepreloader class tried parse svg since called before preloadersvg. temporarily resolved removing dtd declaration svg files.


Comments