Please just use the Transcoder API [1] and instead of JPEGTranscoder, you use org.apache.fop.pdf.PDFTranscoder. You need to make sure that the pdf-transcoder.jar is in the classpath of your application.
[1] http://xmlgraphics.apache.org/batik/using/transcoder.html On 31.01.2008 03:30:18 lou tribal wrote: > Hello, > I hope someone will be able to save my life. > I am using FOP to generate a pdf document which must contains an image. > This image does not come from a file but from a generated JPEG image (receive > some color indexed black and white image as a byte array that is then > converted as JPEG). > I am searching the way I can include that image in the generated PDF. > To achieve that I need to use an SVG image with embeded JPEG image using the > xlink:href="data...." syntax. > Does anybody knows how I can go from my JPEG image bytes as a String encoded > in base64 to an embeded svg in a pdf docuement? > I am successful at generating the SVG xml fragment from Java (when I save the > fragment to a file and open it with a svg viewer I can see the image) but I > cannot find how I can pass it to my XSL-FO file for PDF generation. > Hope someone will help me with some code example. > Thank you. > > < Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
