Ekta Ojha wrote:

Hello group,
Is there a way to specify relative path to
include a image in the pdf document.
Specifying absolute path to
Image jpg = Image.getInstance(imagePath);
works but this is not a good approach especially when
the application goes to production.
Please read SUN's API documentation on java.io.File
When you start a JVM, you always have a 'working directory'.
You need to know the path of your images relative to this working dir.
br,
Bruno


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to