hi...
does anybody know why this error is generated..

Exception in thread "main" java.io.IOException: PDF header signature not
found.
    at
core.com.lowagie.text.pdf.PRTokeniser.checkPdfHeader(PRTokeniser.java:201)
    at core.com.lowagie.text.pdf.PdfReader.readPdf(PdfReader.java:500)
    at core.com.lowagie.text.pdf.PdfReader.<init>(PdfReader.java:175)
    at core.com.lowagie.text.pdf.PdfReader.<init>(PdfReader.java:164)
    at helloworld.main(helloworld.java:32)

while running this small program....
public class helloworld{
    public static void main(String[] args) throws
FileNotFoundException,DocumentException
    ,IOException{


        PdfReader reader = new PdfReader("07review.pdf");
        PdfStamper stamper = new PdfStamper(reader,
        new FileOutputStream("HelloWorldFilledInForm.pdf"));
        AcroFields form = stamper.getAcroFields();
        form.setField("Who", "World");
        stamper.close();
}
    }
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to