----- Original Message -----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, 04 July, 2007 2:27 AM
Subject: [iText-questions] Using images in PDF


>
> hi am using getInstance(String filename) method to include an mage in
order
> to generate pdf . is there any mechanism to check if the given file name
> exits or not using itext.Ex-
>
> if filename = c:\iamges\xyz.jpg, and xyz.jpg doen`t exits so i would like
> soem defaul image to be displayed  .what should be the approach to solve
> this problem.

"Section 5.5.1 Getting the Image instance" on pp. 158-159 of _iText in
Action_ should be helpful to you.

You should also be able to adapt the try-catch exception handling code in
the NUp tool from the iText Toolbox (See the code that sets a default of "1"
for "pow2").

Cheers,
Bill Segraves

> Buy the iText book: http://itext.ugent.be/itext-in-action/


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to