Philippe Vandenhove wrote: > finally the exception : > ExceptionConverter: > java.io.IOException: The document has no pages.
This exception is normally thrown when you close the document (document.close()), but in this case, the cause of the error is probably to be found at an earlier stage. If I had to guess, I'd look for the problem here: Toolkit.getDefaultToolkit().createImage(bytes); When you create an image object this way, you need an X server installed on Linux. Why do you first create a java.awt.Image object, and then use it to create a com.lowagie.text.Image object? Why don't you use the byte[] to create a com.lowagie.text.Image right away? It's very hard to solve this kind of question remotely. I suggest that you add some extra debugging code to your program. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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/
