|
RE: BMP-GIF differences in handling with iText: msg#00110java.lib.itext.general
BMP is accessed with: Image img = BmpImage.getImage("image.bmp"); Gifs can have many images but Bmp only one. The next version will auto-discriminate the various file types. Best Regards, Paulo Soares > -----Original Message----- > From: Björn Sommer [SMTP:lokalhorst@xxxxxx] > Sent: Friday, June 06, 2003 13:05 > To: iText > Subject: [iText-questions] BMP-GIF differences in handling with iText > > Hi... > > why does this work with gif > > if(link.getName().endsWith(".gif")) > { > GifImage gif = new GifImage(new > URL(config.getServerAdresse()+link.getName())); > bild = gif.getImage(1); > } > > and with bmp not?? > > if(link.getName().endsWith(".bmp")) > { > BmpImage bmp = new BmpImage(new > URL(config.getServerAdresse()+link.getName())); > bild = bmp.getImage(1); > } > > <- gets: > > checksoft/Fehlerreporting/BSFS/actions/PdfErzeugenAction.java [148:1] > cannot > resolve symbol > symbol : constructor BmpImage (java.net.URL) > location: class com.lowagie.text.pdf.codec.BmpImage > BmpImage bmp = new BmpImage(new > URL(config.getServerAdresse()+link.getName())); > > > isn't this inconsistent in behaviour???? > Or is there a reason why... and how can i make this work for bmp? > > best regards > > Björn Sommer > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > iText-questions mailing list > iText-questions@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Problem adding a font to a PDF, Thorsten Schäfer |
|---|---|
| Next by Date: | RE: Problem adding a font to a PDF, Paulo Soares |
| Previous by Thread: | BMP-GIF differences in handling with iText, Björn Sommer |
| Next by Thread: | Non savable pdf, Martin Abrahamsson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |