Meghana Dalvi wrote:

I have J2EE web application which has a link to print
PDF document.When user clicks on this link , I create
a PDF file dynamically.
Currently I am using URL to put the image in PDF.
String url= "http://host:port#/images/logo.gif";;
Image logo = Image.getInstance(url);

The problem is URL might change sometimes from http://<host>:8080 to https://<host>:8443
So I would not want to rely on URL here.

How do I place the image in the PDF without using URL
path in web application

Is the image reachable through the file system?
br,
Bruno


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to