Pedro,

P3d3r0s0 wrote:
> thanks for the tips, unfortunatly i don't have the book, i had already
> inspected the PdfDictionary methods by looking at the API
> (http://api.itextpdf.com/com/itextpdf/text/pdf/PdfDictionary.html) but i
> can't find anything regarding visibility and signer's name.
> Ideally i would need to get the PdfSignatureAppearance, i think that has
> all i need. 
> 
> The question now is that if it is possible to get previous
> SignatureAppearances (if such thing even makes sense).

Unfortunately you wont get a SignatureAppearance instance when reading a
PDF... decoding the information would be difficult enough if everyone would
sign just like iText does. Sadly, each PDF library signs a bit different,
and so generically decoding a given PDF signature into a SignatureAppearance
instance is virtually impossible. SignatureAppearance does not cover all
possibilities concerning PDF signatures.

Obviously, though, looking for specific information is possible. Inspect
af.getSignatureDictionary(name) and af.getFields().get(name).
af.getFieldPositions(name) might help you along concerning your visibility
question and the signature dictionary entries --- either the /Name value or
the signature container in /Contents --- will give you the signer name.

You definitively should study the PDF-Spec, though, and also some Adobe
white papers on PDF signatures; all these documents are available on the
Adobe web sites.

Regards,   Michael.
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Access-to-previous-signatures-in-a-pdf-tp3028590p3029437.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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