Allows to verify if the electronic signature of a PDF document is valid.
1 pdf.verify
<pdf.verify encoding='encoding'>
<privatekey /> ?
<inputstream_pdf /> ?
</pdf.verify>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aencoding | string | Indicates the coding of the string of characters to process, for example ISO-8859-1 or UTF-8. If not specified, the one defined in the configuration file for the server is used. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eprivatekey | stream | If the document is self signed with a personal signature, this argument takes the files of the used signature. If the document is signed with a signature with a certify supplied by a certifying entity, this parameter must be passed with the null value. | |||
Einputstream_pdf | stream | The PDF file which you want to process. |
Returns | |
---|---|
Type | Description |
boolean | Returns true or false depending if the signature of the PDF document is correct or not. |
Example
Obtains an array with the images of each one of the pages of the PDF document.
Copy
<println> <pdf.verify> <file type='absolute' name='private_key.p7b' /> <file type='absolute' name='autosigned.pdf' /> </pdf.verify> </println> <println> <pdf.verify> <null /> <file type='absolute' name='signed.pdf' /> </pdf.verify> </println>