Sorry for the delay. I can produce PDF with JPEG images with no problems
in Batik 1.6 and 1.7. For example, I tried the following command-line:

java -jar batik-rasterizer.jar -m application/pdf 
samples/tests/spec/painting/image-rendering.svg -d image-rendering.svg

(from Batiks root directory, so you can try it on your side.)

I don't know what's wrong on your side. Are you using a binary
distribution? If yes, what version? Have you tried from the command-line?

On 15.02.2008 13:55:40 Lea Thurman wrote:
> 
> Your right, squiggle is moaning but Safari and Opera are both able to render
> the bitmap. Squiggle does render it correctly if I embed a JPG.
> 
> I do have scope to convert to JPG but when I progress this route I get the
> same error when rendering the PDF. I am not sure how to specify the URI for
> the xlink:xref If I just specify the file name then it creates the correct
> SVG but the PDFTranscoder cannot accept this.
> 
> Has anyone managed to produce to a PDF with an embedded image? If so how did
> you specify the xlink:href when constructing the SVG document?
> 
> Many Thanks
> Lea.
> 
> 
> 
> Jeremias Maerki-2 wrote:
> > 
> > Uhm, here it doesn't even work in Squiggle. AFAIK, Batik doesn't
> > recognize BMP images at all, only JPEG, PNG and TIFF. What if you
> > convert the BMP image to a PNG?
> > 
> > On 14.02.2008 21:39:34 Lea Thurman wrote:
> >> 
> >> Hi,
> >> 
> >> I am new to batik so please be gentle.
> >> 
> >> I am getting the following error from the PDFTranscoder when I attempt to
> >> convert an SVG (attached) with a single embedded bitmap.
> >> 
> >> The URI "bmpfile.bmp" on element <image> can't be opened because:
> >> The URI can't be opened: Unable to make sense of URL for connection
> >> 
> >> The SVG is displayed correctly when I view it via squiggle.
> >> 
> >> http://www.nabble.com/file/p15488838/bmpfile.svg bmpfile.svg 
> >> 
> >> This maybe a silly question but does the PDFTranscoder support the image
> >> tag? Assuming it does is it simple the fact that it cannot find the
> >> bitmap
> >> file?
> >> 
> >> Any help is much appreciated.
> >> Lea Thurman.
> >> -- 
> >> View this message in context:
> >> http://www.nabble.com/The-URI-can%27t-be-opened-error%3A-when-generating-PDF-with-embedded-image-tp15488838p15488838.html
> >> Sent from the Batik - Users mailing list archive at Nabble.com.
> >> 
> > 
> > 
> > Jeremias Maerki
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/The-URI-can%27t-be-opened-error%3A-when-generating-PDF-with-embedded-image-tp15488838p15500394.html
> Sent from the Batik - Users mailing list archive at Nabble.com.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to