The flag that determines whether to automatically add an extension when it is missing in the output file path. Default value is False. (inherited from SaveOptions)
The flag indicating whether to use the password from LoadOptions when saving the signed document as protected. The default value is True. Not supported for Image documents. (inherited from SaveOptions)
Example
fromgroupdocs.signatureimportSignaturefromgroupdocs.signature.optionsimportLoadOptions,PdfSaveOptions,QrCodeSignOptionsfromgroupdocs.signature.domainimportQrCodeTypesload_options=LoadOptions()load_options.password="1234567890"save_options=PdfSaveOptions()save_options.password="new-password"save_options.permissions_password="new-owner-password"save_options.use_original_password=Falseqr_options=QrCodeSignOptions("Approved by John Smith",QrCodeTypes.QR)withSignature("protected.pdf",load_options)assignature:result=signature.sign("signed_new_password.pdf",qr_options,save_options)print(f"Signatures added: {len(result.succeeded)}")