Select from list QrCodeSignature object(s) that should be updated;
Call Signature object update method and pass one or several signatures to it.
This example shows how to update QR-code signature that was found using search method.
// initialize Signature instance
Signaturesignature=newSignature("signed.pdf");try{QrCodeSearchOptionsoptions=newQrCodeSearchOptions();// search for QRCode signatures in document
List<QrCodeSignature>signatures=signature.search(QrCodeSignature.class,options);if(signatures.size()>0){QrCodeSignatureqrCodeSignature=signatures.get(0);qrCodeSignature.setLeft(10);qrCodeSignature.setTop(10);booleanresult=signature.update("signed-output.pdf",qrCodeSignature);if(result){System.out.print("Signature with QR-Code '"+qrCodeSignature.getText()+"' and encode type '"+qrCodeSignature.getEncodeType().getTypeName()+"' was deleted from document ['signed-output.pdf'].");}else{System.out.print("Signature was not deleted from the document! Signature with Barcode '"+qrCodeSignature.getText()+"' and encode type '"+qrCodeSignature.getEncodeType().getTypeName()+"' was not found!");}}}catch(Exceptione){thrownewGroupDocsSignatureException(e.getMessage());}
More resources
Advanced Usage Topics
To learn more about document eSign features, please refer to the advanced usage section.
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
Along with full-featured .NET library we provide simple, but powerful free Apps. You are welcome to eSign PDF, Word, Excel, PowerPoint documents with free to use online GroupDocs Signature App.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.