Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Help Needed - Image Tag

Ashwin Bharath Pushpanayagam

2005-06-21



Hi,

We are using iText to generate PDF. In the XSL we are using the tag <image url="gif URL"> to include images in the PDF. We are able to specify the image URL in either one of the following ways.

A) If we provide absolute path, iText is looking for the images from the current drive. For example if the url is "/images/logo.gif", iText is expecting the image to be in "<drive>:/images/logo.gif"

B)  If we provide relative path, iText is looking for the images from the weblogic server directory. For example if the url is "images/logo.gif", iText is expecting the image to be in "<drive>:/<server_home>/server/images/logo.gif"

Is there a possibility in iText to accept relative path outside server directory or to get images from directories set in classpath.

Thanks in Advance.

Ashwin
©2008 junlu.com - Jax Systems, LLC, U.S.A.