Skip to main content

how to export dynamic images into pdf

2 replies [Last post]
ashokummars
Offline
Joined: 2007-05-25
Points: 0

Hi,

I need to export a image into PDF which we are getting it from DBase. This returns me the image as BLOB and this we are putting it in between the xml tags. I am passing the xml to xsl-fo. While i tried to export the xml data into pdf using xsl-fo, the content is getting exported into pdf but not the image. I am using FOP, and i have added fop.jar, batik.jar, avalon-xx.jar, jai_codec.jar and jai_core.jar to my class path. I am putting my sample xsl and xml here.

xml:

http://www.thomson-pharma.com/tp/images

xsl:

first
second
thrid
fourth
fifth

Any help would be appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
brutaal
Offline
Joined: 2007-06-28
Points: 0

Yo!

Try this :





instead of :

kitfox
Offline
Joined: 2004-03-31
Points: 0

I've used the XSL-FO library to generate graphical content in PDF (see http://www.kitfox.com/puzzlecorner/index.html). I think you need to define your images as inlined SVG to get the XSL-FO processor to pick them up. It's not a full implementation of XSL-FO.