Injecting page-height to the FopFactory without creating a new instance

Arpit Phanda <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <CAF7CgRquWjnwMKS0+ogELCExxessBFxrK9XHUefrjdqRY_L94A@mail.gmail.com>
Hi,

We are migrating our service from apacheFOP-0.95 to apacheFOP-2.1. Our aim
is to configure pageHeight and pageLength to singleton instance during each
rendering call.

In earlier version we could create FopFactory instance by calling
FopFactory.newInstance() and then use setPageHeight/setPageWidth on the
same instance of FopFactory. Currently, this is no more valid. Now, we are
allowed to set these property on FopFactoryBuilder - new
FopFactoryBuilder().setPageHeight().build() which means we are creating a
new FopFactory instance each time. Is there any way of injecting these
property on already created instance.

PS: Also, i read a few issue where it has been said ApacheFOP is not
threadsafe and just wanted to know the reason behind it.

-- 
Regards
Arpit Phanda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.