John Pedersen wrote: > Paulo, > > I hope I haven't offended by sending you the code and pdf's that are > causing my difficulty. > I have reduced the code to the minimum which throws the > NullPointerException, and I am still stuck in the same place.
I'm sorry, but I find that very hard to believe. > Do you have time to look at it? Can you suggest a way forward? There are some very obvious errors in your code. I'm surprised you didn't discover them while you were simplifying the example. For instance: - you don't create a new instance of ByteArrayInputStream - when you're using PdfCopy, you create a document with only 1 page: you forgot to add the cover page, but still you augment the page number. This causes the NullPointerException: you are asking for a page that doesn't exist. - ... None of these errors are iText-related. That's why I didn't answer before. It isn't a personal issue; it's just that there are only 24 hours in a day. I usually only spend time on real iText issues. I can't start debugging other people's code for free. Otherwise I will be punished: more people will send me their code in the hope I'll solve /their/ problems. best regards, 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/
