I'm adding an SVG logo to every page of a document in a <fo:static-content> 
element
and notice that the logo gets "inlined" on every page, rather than appearing 

only once in the PDF file and then referenced when used on each page. 

Thus the size of the PDF balloons with number of pages. Ouch! 


Here's what I do:


http://stackoverflow.com/questions/41220101/xml-fo-how-to-re-use-graphics



As can be seen there's only a single character on each page (Just to make the 
example
simple). If I from this generate a 2 page PDF document it will be 13 KB, but if 

I generate a similar 50 page document it will be 215 KB !!

I would have expected the two PDF document to be almost the same size.

How can I achieve that the logo (or header as a whole) is re-used and referenced
instead of inlined for each and every page?


By the way: Not using vector graphics is not an option for me.


Apache FOP 2.1, Java 8, PDF output




Thanks 

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to