Hi,

I am facing following problem while stamping a (just generated) report for
printing page X Of Y footer:

com.itextpdf.text.exceptions.InvalidPdfException: PDF header signature not
found.
    at
com.itextpdf.text.pdf.PRTokeniser.checkPdfHeader(PRTokeniser.java:205)
    at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:494)

What I am trying to do is that, I creat a temporary copy of the original
report with _stamped.pdf name.
read the original report and count the pages and stamp the new report with
footer then delete the original report and then rename my _stamped copy with
original report name ... Its quite tedious way, but that was the only
solution that I could get to work.

Can anyone help me in resolving the above mentioned exception?

- R J

-- God knows when I'll have a bug free report generation!



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Problem-during-report-stamping-tp4657230.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to