----- Original Message -----
From: "Bj�rn Sommer" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003 11:21
Subject: Re: [iText-questions] catching exception for unsupported GIF-Format


> well... i get the message that this GIF i am trying to load
> is an interlaced one and is NOT supported
>

Using the old interace, yes.

> so you mean there is no way to catch the exception???

Using the old interace, no.

> think i could live with it... although the result doesn't look
> too good right now...
>

Instead of using:

Image img = Image.getInstance("picture.gif");

use:

GifImage gif = new GifImage("picture.gif");
Image img = gif.getImage(1);

Best Regards,
Paulo Soares


> regards
>
> Bjoern Sommer
>
> ----- Original Message -----
> From: "Paulo Soares" <[EMAIL PROTECTED]>
> To: "Bj�rn Sommer" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Sunday, June 01, 2003 11:41 AM
> Subject: Re: [iText-questions] catching exception for unsupported
GIF-Format
>
>
> > Images are read when they are inserted in the document not when the
actual
> > Image instance is created. This is done to keep compatibility with the
rtf
> > and html generation. The last version supports new image classes in the
> > codec package but will only work with pdf. The images are read there and
> > will fail immediately if there's any problem. By the way, all the gif
> types
> > are supported in the codec package and so are bmp, tiff and png.
> > In the next release the image type will be selected automatically.
> >
> > Best Regards,
> > Paulo Soares
> >
> > ----- Original Message -----
> > From: "Bj�rn Sommer" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, June 01, 2003 9:30
> > Subject: [iText-questions] catching exception for unsupported GIF-Format
> >
> >
> > > Hi...
> > >
> > > I am dynamically generating PDFs from an JSP-Environment...
> > > the user has the opportunity to upload files... such as
> > > images or textfiles etc... if the upload is an image... it will
> > > be included in the PDF automatically... if it is no image,
> > > there will be a link instead...
> > > this works fine so far...
> > > BUT
> > > some GIF-Types are not supported...
> > > my idea was to catch the exception when such a problem is
> > > encountered... and in this exception I want to generate
> > > an external link... like for all non-image-uploads...
> > >
> > > I tried everything I could imagine to catch this exception...
> > > but it won't work... all i get is a text on the tomcat-screen,
> > > that this GIF-type is not supported... and the place where
> > > this image (or the link) in the PDF should be is blank!
> > >
> > > Who can help me???
> > >
> > > Thanks
> > >
> > > Bjoern Sommer
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: eBay
> > > Get office equipment for less on eBay!
> > > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> > > _______________________________________________
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: eBay
> > Get office equipment for less on eBay!
> > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
>




-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to