Hi , I am using itext to generate PDF's of images and all it's work OK ,  but 
when I try to make the same to generate RTF's of images do not work , this is 
the part of code :
--------------------------------------------------------------------------------
 
 Document RTF = new Document(sizePagina ,0.0f ,0.0f,0.0f,0.0f)
 RtfWriter2.getInstance(PDF, new FileOutputStream(outF) );
 RTF.open();  
 //here add all my images , inside of a loop for
  for(blabla ; blabla ; blabla  ){
     BufferedImage img = (ImagePanel)sp.getViewport().getView() ).getImage() ;

     RTF.add(com.lowagie.text.Image.getInstance(img, null) );      /* this 
don't work 
     I am sure that I insert a supported format as jpeg , png , but always is 
throwed
     DocumentException("Only BMP, PNG, WMF, GIF, and JPEG images are supported 
by the RTF Writer")
     I am using  the version 2.1.5 .
      
 } 
RTF.close();
------------------------------------------------------------------------------------------------
   
If somebody can help me. (My apologizes for my BAD english).

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to