|
I have been using iText for some time now to create PDF through a servlet. Some users have complained that some documents are not being created correctly. I verified that one document in particular was missing a page in the middle. Originally the servlet had fields to handle creating PDFs, but I soon realized that without synchronization the documents would be created incorrectly if two people hit the servlet at once (since the fields are shared). I changed my servlet so there are no fields and I am using another class built within a servlet method to generate PDFs. There still seems to be a problem some times (the case of a PDF missing a page) and I think this may have to do with a threading issue. Are the iText classes safe to use like this? That is, are there static fields somewhere that may be trampled if several calls are made at once? The code works perfectly for me. The only time I ever notice anything is when it is deployed to a higher volume site. Any ideas would be appreciated.
Aaron Kelley | Software Developer
Phone: 303.683.3979 Email: [EMAIL PROTECTED]
|
- [iText-questions] Help Required Aaron Kelley
- [iText-questions] Help Required Subbiah
- RE: [iText-questions] Creating PDFs through servlet Paulo Soares
