cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <>
Subject Re: Questions re using SVG in Cocoon
Date Mon, 31 Jul 2006 12:24:48 GMT
hepabolu wrote:
> Guys,
> I'm at a loss here, searched high and low, but I cannot figure out how I 
> get the stuff to work the way I want it to.
> Problem:
> I want to display a line drawing that is created based on a few 
> parameters. This should ultimately be printed on an A4.
> What I've got so far is:
> a form to enter the parameters that are passed onto a jx:template file 
> which should be fed into either a pipeline or a flowscript function that 
> create an SVG file defining the line drawing.
> I also have a generator that can create the SVG file, which I can call 
> from a url with the parameters added. I created a pipeline that does 
> nothing more than calling the generator with the parameters and 
> serializing it into a jpeg.
> Problems I'm running into:
> - the final jpg image only holds a part of the SVG image. I can't figure 
> out how to make the image large enough to hold the entire SVG image. 
> I've set the height and width parameters in the serializer definition at 
> the top of the sitemap, but although I've set them to e.g. 800 x 800, 
> the final image is smaller (e.g. 754 x 754). What I really want is to 
> set it to an A4 size.
> - AFAICT I should be able to display the image in my result page as
> <img src="cocoon://my-svg-pipeline?parameters=x"/>

Shouldn't you provide a link here instead of calling cocoon:// protocol?

Leszek Gawron                            
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                    
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

View raw message