[iText-questions] Fwd: iText Error while adding paragraph

2010-01-13 Thread Traian Decebal
Hi all, I added a restoreState() at the end of the onEndPage() method and it worked :). Sorry to send all these mail on the list, but maybe it will help sombody else with the same problem. Cheers, Narcis -- Forwarded message -- From: Traian Decebal Date: Wed, Jan 13, 2010 at 10:

Re: [iText-questions] Fwd: iText Error while adding paragraph

2010-01-13 Thread 1T3XT info
Traian Decebal wrote: > When should I call the restoreState() method ? The question is: why are you calling saveState()? You're only adding text; you're changing the text state, but not the graphics state. (It looks like you've copy/pasted code without knowing what you're doing.) -- This answer

[iText-questions] Fwd: iText Error while adding paragraph

2010-01-13 Thread Traian Decebal
Hi again, I've done some google search, and it seems it's because of saveState() / restoreState(). I've searched my code and the only place I found a saveState() is on the onEndPage() method. public void *onEndPage*(PdfWriter writer, Document doc) { try { String footerTe