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"/>

but this doesn't work.


Who can help? What am I doing wrong?

BTW cocoon version is 2.1.9-dev.

Bye, Helma

Reply via email to