Hi everybody!

 

Actually i’m trying to get signature out of acroform….

As I looked into whitepaper of pdf Version 1.4 it’s legal to write signature fields in acroform and

Make no link with annotations.

 

        PdfDictionary top = (PdfDictionary)PdfReader.getPdfObjectRelease(reader.getCatalog().get(PdfName.ACROFORM));

                    if (top == null)

                        return;

                    //sind felder vorhanden

                    PdfArray arrfds = (PdfArray)PdfReader.getPdfObjectRelease(top.get(PdfName.FIELDS));

                    if (arrfds == null || arrfds.size() == 0)

                        return;

                   

                    ArrayList al = arrfds.getArrayList();

                    Iterator i = al.iterator();

                    while (i.hasNext()){

                        PdfObject pa = (PdfObject)i.next();

                                                           

                        PdfObject po = reader.getPdfObject(pa);                    

                                   

                        PdfDictionary pid = (PdfDictionary)po;

                        Set temp = pid.getKeys();

                        Iterator it = temp.iterator();

                        while (it.hasNext()){

                                    System.out.println(it.next().toString());

                        }

                    }

 

With that method I get an PdfDictionary. SO I can find out if that’s a signature.

When it is a signature, I’m trying to read the other important information like

CONTENTS and BYTERANGE. But there’s none….

Does anybody know how to get the rest of the data?????

The only things there are :

/Type

/P

/AP

/F

/T

/V

/Rect

/Subtype

/MK

/FT

 

Hope someone can help me…

Reply via email to