fop-pdf-images and caching

Matt Kynaston <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <CAKBO4j_o88KbhB5qR+viOJPsiJoB3Hw-mF=O=iOzpMMjd3xY=w@mail.gmail.com>
I'm using fop-pdf-images to load an external PDF to use as a background on
all pages. Works great most of the time :)

However I've noticed a couple of things around caching. It might be my
setup, but maybe someone can point me in the right direction before I start
stepping through it.

First, I get a hit on the external PDF for each and every page. I've had a
look at the PreloadPDF and it looks like it's meant to be caching, but
apparently not. Is there some configuration I'm missing for this?

Second, if I rename the external PDF I get an error as expected. However
renaming it back doesn't seem to be picked up immediately: it takes one or
more runs before it's found again.

Note that I've got an EventListener hooked up to throw an exception on
(most) resource error events. Could that be short-circuiting things?

Thanks for any help

-- 
Matt Kynaston
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.