Hi All,
I am stuck with adding a Header and Footer to an existing PDF using iText.
Any clues are appreciated. I have already checked the iText Documentation and
did not find anything matching.
My code goes like below -
If I comment the line
document.add( new Chunk("testing"));
I get an exception
Exception in thread "main" ExceptionConverter: java.io.IOException: The document
has no pages.
Without commenting there are no exceptions but it doesnt add the Header and
Footer. Any clues are highly appreciated.
Or if you could suggest how can I add events to an existing PDF.
I also tried using PDFCopy and adding events to it but seems like you can attach
events only to a writer.
Is there anyways we can add header and footer to an existing PDF?
Regards,
Tina
I am stuck with adding a Header and Footer to an existing PDF using iText.
Any clues are appreciated. I have already checked the iText Documentation and
did not find anything matching.
My code goes like below -
If I comment the line
document.add( new Chunk("testing"));
I get an exception
Exception in thread "main" ExceptionConverter: java.io.IOException: The document
has no pages.
Without commenting there are no exceptions but it doesnt add the Header and
Footer. Any clues are highly appreciated.
Or if you could suggest how can I add events to an existing PDF.
I also tried using PDFCopy and adding events to it but seems like you can attach
events only to a writer.
Is there anyways we can add header and footer to an existing PDF?
Regards,
Tina