Hi

> I have to make a FOP customization for processing the fo:external-graphic
> statement.(Because the imges are stored in a strange way which i dont want
> to explain in details)

Are you sure that this is really necessary?
It would be interesting to know what exactly makes you believe you need to
do that. URLs are a pretty
flexible concept and you can always put in your own way of retrieving
documents/images.

Ok ill explain it in detail.

I am using webtogo as servlet container
(http://www.computingsa.co.za/1998/11/16/News/new07.htm) and therefore the
images are  stored in a database.
U can retrieve a resource from the database via the servlet context.
For example this statement gets the image foo.jpg from the database:
InputStream imageIn = context.getRessourceAsStream("/images/foo.gif");

so using the file: protocol in the src attribute in the fo:external-graphic
element will not work.
Ok u can still specify a url where a servlet will return the image from the
database as binary stream.
But webtogo denies for some reason the access to the servlet url.(I think
thats because the user is indetified via cookies).

So i must customize the processing of the src attribute.Whats the fastest
way to do so ?
Rember i just have to call.context.getRessourceAsStream().

> What classes should i take a look at ?
> Whats the best entry point for that ?

Basically this is everything in org.apache.fop.image, especially
FopImageFactory. That's were the various formats are loaded. The analyzer
subpackage is responsible for parsing some attributes like height and
width from the image, before the whole image is loaded during rendering
time.

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch

Thank you for your quick reponse and for you interest on this problem.

Bye,

Holger Prause



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to