|
|
|
|
PDFSign (Function) In french: PDFSigne Applies an approval signature to an existing PDF. MySignature is pdfSignature
MyCertificates is array of Certificate = CertificateLoad("test.pfx", "pwd")
MySignature..Certificate = MyCertificates[1]
MySignature.X = 1
MySignature.Y = 1
MySignature.Height = 1
MySignature.Width = 1
PDFSign("mypdf.pdf", MySignature)
Syntax
Adding an approval signature to a PDF file Hide the details
<Result> = PDFSign(<PDF file to sign> , <Signature> , <Signature mode>)
<Result>: Boolean - True if the PDF file was signed,
- False otherwise.
<PDF file to sign>: Character string Name and path of PDF file to sign. <Signature>: pdfSignature variable Name of pdfSignature variable corresponding to the description of the approval signature that will be applied to the PDF file. <Signature mode>: Integer constant Signature format to use: - PAdES (PDF Advanced Electronic Signatures):
| | iSignature_CAdES_B | CAdES Basic (CMS Advanced Electronic Signature). | iSignature_CAdES_C | CAdES C (CMS Advanced Electronic Signature). | iSignature_CAdES_T | CAdES Trust token (CMS Advanced Electronic Signature). | iSignature_CAdES_X | CAdES X Type 2 (CMS Advanced Electronic Signature). | iSignature_CAdES_XL | CAdES XL Type 2 (CMS Advanced Electronic Signature). |
- Adobe signature format:
| | iSignature_PKCS7 (default value) | PKCS7 signature. This is an Adobe standard format not approved by the ETSI and Chorus standards. |
New in version 2024
Adding an approval signature to a PDF document Hide the details
<Result> = PDFSign(<PDF document> , <Signed PDF file> , <Signature> , <Signature mode>)
<Result>: Boolean - True if the PDF file was signed,
- False otherwise.
<PDF document>: pdfDocument variable Name of the pdfDocument variable that corresponds to the PDF document to be signed. <Signed PDF file>: Character string Name and path of the signed PDF file. <Signature>: pdfSignature variable Name of pdfSignature variable corresponding to the description of the approval signature that will be applied to the PDF file. <Signature mode>: Integer constant Signature format to use: - PAdES (PDF Advanced Electronic Signatures):
| | iSignature_CAdES_B | CAdES Basic (CMS Advanced Electronic Signature). | iSignature_CAdES_C | CAdES C (CMS Advanced Electronic Signature). | iSignature_CAdES_T | CAdES Trust token (CMS Advanced Electronic Signature). | iSignature_CAdES_X | CAdES X Type 2 (CMS Advanced Electronic Signature). | iSignature_CAdES_XL | CAdES XL Type 2 (CMS Advanced Electronic Signature). |
- Adobe signature format:
| | iSignature_PKCS7 (default value) | PKCS7 signature. This is an Adobe standard format not approved by the ETSI and Chorus standards. |
Remarks - The signature applied by PDFSign is an approval signature. The PDF file can be signed and countersigned several times.
- This signature must correspond to a control of PDF file (its minimum size will be set to 1 X 1 mm²). The Signature control can be invisible but we advise you to associate it with a caption or an image in order for the user to see this signature and to click it.
- The encrypted PDF files (with password) are not supported.
- The PDF files whose version is later than PDF 1.5 will be saved in version PDF 1.4 before they can be signed.
- Caution: For Acrobat to recognize a signed PDF file, the organization that creates the signing certificate must be in the Adobe Approved Trust List (Adobe Authorized Trust List) or in the Certified Document Services program (CDS).
If the certificate is not recognized, Acrobat will display the following message: "At least one signature has problems".
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|