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:
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
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