If you call writer.getDirectContent() without opening first the document it throws an exception.
Best Regards, Paulo Soares > -----Original Message----- > From: EXT-Nair, Vimal K [SMTP:[EMAIL PROTECTED] > Sent: Friday, June 20, 2003 1:07 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Pdf Writer Version 0.99 gives problem old > version works fine > > Pdf writer iText.jar new version gives problem @ the last line. > Program exit with not error messages. > > > The same thing works fine and produce pdf output with old version of > jar file. Upgraded to incorporate XML writer which required 0.99 > version. > > > PdfWriter writer = PdfWriter.getInstance( document, buffer ); > // create add the event handler > MyPageEvents events =new MyPageEvents(); > writer.setPageEvent(events); > PdfContentByte cb =writer.getDirectContent(); > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
