Hi,

I have a PDF file with AcroField data. It has a primary digital
signature field and a secondary one that gets signed later on. Somehow,
in the stamping process, something is getting corrupted. I have boiled
it down to a simple test case:

Steps taken:

1. Sign the first signature field and save file.
2. Run it through a simple load and stamp program.
3. Load up processed PDF into Acrobat and attempt 'Save As'.
4. Acrobat (9.0) reports 'The file is damaged and could not be
repaired'.

My simple program code is:

        PdfReader reader = null;
        PdfStamper stamper = null;
        
        try
        {
            // Load up file
            reader = new PdfReader (filename);
            
            // create a stamper
            stamper = new PdfStamper (reader,
                    new FileOutputStream (filename + "_pass1.pdf"));
            // write out and close up
            stamper.close ();
        }
        catch (Throwable e)
        {
            // report error
            e.printStackTrace();
        }
        finally
        {
            // make sure source is closed
            reader.close();
        }

I can send on my simple source PDF for anyone to take a look at - just
need to know where.

Thanks in advance for any help or thoughts.

Cheers,

Nathan
--
Nathan Aldridge

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to