Archana Nagesh wrote: > Hi Bruno, > Thanks a lot for your quick reply. > > I am generating 2 separate files USING iText. I am merging them later. > The first file is always getting generated. But the second file gets > generated MOST OF THE TIMES..but sometimes it gives the error. > I am closing the documents and also not adding any junk. > > I am using page event which puts page numbers and some footer labels. > > I am enclosing the file which has the code for generating both the files > and also the method which merges.
I'm sorry, but I'm not going to read that code; it's too long and I would take away too much of my precious time if /I/ have to debug your code. I just took a glance at it, and I saw that: - document.close() could have been skipped because of an exception. - you are creating (and deleting) the files as temporary files. Why? Why don't you just create them in memory? Is there any reason why you need the file system? br, Bruno ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
