|
|
|
|
|
PDFSign (Function) In french: PDFSigne Adds an approval signature to an existing PDF. MaSignature is pdfSignature
MesCertificats is array of Certificate = CertificateLoad("test.pfx", "mdp")
MaSignature.Certificate = MesCertificats[1]
MaSignature.X = 1
MaSignature.Y = 1
MaSignature.Height = 1
MaSignature.Width = 1
PDFSign("monpdf.pdf", MaSignature)
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 the PDF to be signed. <Signature>: pdfSignature variable Name of the pdfSignature variable corresponding to the description of the approval signature to be added 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. |
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 the pdfSignature variable corresponding to the description of the approval signature to be added 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 added by PDFSign is an approval signature. The PDF file can be signed and countersigned several times.
- This signature must correspond to a control in the PDF file (its must have a minimum size of 1 X 1 mm²). The Signature control can be invisible but it should be associate it with a label or image so that the user can see the signature and click on it.
- The function PDFSign function cannot be used to sign a PDF file with authentication. You need to use the iPrintSignature function, which allows both methods.
- Encrypted PDFs (password protected) are not supported.
- PDF files older than PDF 1.5 are saved as PDF 1.4 before being signed.
- Attention: For a signed PDF file to be recognized by Acrobat, the organization issuing the signature certificate must be a member of the AATL list (Adobe Authorized Trust List) or the CDS (Certified Document Services) program..
If the certificate is not recognized, Acrobat will display the following message: "At least one signature has problems".
Business / UI classification: Neutral code Component: wd300wdpdf.dll
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|