The SVG would be helpful to fully understand what you're trying to achieve. Anyway, I think you could use the following hint to properly increase the resolution for bitmap output in PDF: transcoder.addTranscodingHint(PDFTranscoder.KEY_DEVICE_RESOLUTION, new Float(300f));
(...instead of scaling the image) HTH On 13.06.2008 09:09:41 Lars Eirik Rønning wrote: > 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. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
