batik-users@xmlgraphics.apache.org
[Top] [All Lists]

SVG - PDF question on placed images in pdf

Subject: SVG - PDF question on placed images in pdf
From: "Lars Eirik Rønning"
Date: Fri, 13 Jun 2008 09:09:41 +0200
Hi.
I have sucessfully generated my pdf from batik by adding replacing vector elements with rasterized images.
The elements are placed within a symbol and instantiated with a <use> element.
The rasterized image has been resized to fit the placeholder element , thus matching height and length.
To get the 300dpi required i have scaled the image with (0.24).

When i open the pdf in acrobat reader and click the image the shaded area exceeds the image data by far.
I also did add a viewBox which should be appropriate for the image.
Each image uses the preserveAspectRatio="XmidYMax" to fill out the entire area.

Any explanation on understanding why the shaded area exceeds the image data in the pdf would be great..

If you desire i will be more than happy to send an svg and the corresponding pdf.
<Prev in Thread] Current Thread [Next in Thread>