Nick, Nick Russler wrote > at the moment i am calculating the total number of (signed) Signatures > this way: > > int signatureCount = reader.getAcroFields().getSignatureNames().size(); > > would this code have the same effect: > > int signatureCount = reader.getAcroFields().getTotalRevisions(); > > or are revision also created by other things than adding signatures?
The method getTotalRevisions() is implemented like this: public int getTotalRevisions() { getSignatureNames(); return this.totalRevisions; } Here the totalRevisions member variable is set to the number of signatures as a side effect during getSignatureNames(). Thus, both calls have the same effect, they actually call more or less the same code. That being said, though, there indeed can be more PDF document revisions than the signed ones, for backgrounds read this stackoverflow answer: http://stackoverflow.com/questions/17169318/how-to-get-the-names-of-acrofield-revisions-in-itext/17190063#17190063 getTotalRevisions() ignores those other revisions. Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Get-total-number-of-signed-Signatures-tp4659574p4659575.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ 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