On 29/10/2012 19:49, DenLindy wrote: > No signature of method: static > com.itextpdf.text.pdf.security.MakeSignature.signDetached() is applicable > for argument types: (com.itextpdf.text.pdf.PdfSignatureAppearance, > com.itextpdf.text.pdf.security.BouncyCastleDigest, > gvl.ItextExternalSignature, [Ljava.security.cert.Certificate;, null, null, > null, java.lang.Integer, > com.itextpdf.text.pdf.security.MakeSignature$CryptoStandard) values: There's a method with that name with the following parameters:
PdfSignatureAppearance sap, ExternalDigest externalDigest, ExternalSignature externalSignature, Certificate[] chain, Collection<CrlClient> crlList, OcspClient ocspClient, TSAClient tsaClient, int estimatedSize, MakeSignature.CryptoStandard sigtype See http://api.itextpdf.com/itext/com/itextpdf/text/pdf/security/MakeSignature.html#signDetached%28com.itextpdf.text.pdf.PdfSignatureAppearance,%20com.itextpdf.text.pdf.security.ExternalDigest,%20com.itextpdf.text.pdf.security.ExternalSignature,%20java.security.cert.Certificate[],%20java.util.Collection,%20com.itextpdf.text.pdf.security.OcspClient,%20com.itextpdf.text.pdf.security.TSAClient,%20int,%20com.itextpdf.text.pdf.security.MakeSignature.CryptoStandard%29 These parameters more or less correspond with what is expected in your error message: - BouncyCastle implements ExternalDigest - ItextExternalSignature implements ExternalSignature The null values and the int value correspond too. I think we can conclude that: - either you're using an old version of iText in which signDetached() didn't exist or needed different parameters. - or for some reason Groovy can't access that method. Did you try the examples in plain Java? By the way, you can download the examples here: http://sourceforge.net/p/itext/code/5499/tree/tutorial/signatures/ ------------------------------------------------------------------------------ The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ _______________________________________________ iText-questions mailing list [email protected] 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
