Joerg Heinicke said the following on 31/7/06 00:31:
On 31.07.2006 00:14, hepabolu wrote:

Problem:

I want to display a line drawing that is created based on a few parameters. This should ultimately be printed on an A4.

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

Does setting the size on the serializer has any influence? I did not know these settings.

Yes it does, I don't know why but now the final image is actually the defined size (i.e. 800 x 800). I found this information in the SVG serializer documentation. ;-)

In theory the size must be set in the SVG itself (on the root element). I have done already much with SVG-generated images and never had such problems, but it was also some time ago ...


Ok, I'll have a look to see if that makes a difference.

Bye, Helma

Reply via email to