Extending a document

BEFORE YOU CONTINUE

Make sure that you have your eID Easy API credentials at hand as you'll need them in the following steps. You can follow this short guide to obtain the API credentials.

Extending a PDF for long term archival (LTA)

Make a POST request to https://id.eideasy.com/api/signatures/extend with the following request body:

{
  "secret": "{{secret}}",
  "client_id": "{{client_id}}",
  "signed_file": {
    "fileName": "dummy-filename.pdf",
    "mimeType": "application/pdf",
    "fileContent": "{{signedFile}}"
  },
  "signature_form": "PAdES",
  "signature_profile": "PAdES_BASELINE_LTA",
  "validate_signature_extension": true
}

fileContent - a base64 encoded PDF document.

validate_signature_extension - if set to true, the request will succeed only if all of the signatures in the document can be successfully extended to the requested signature_profile. If set to false, the request will succeed even if some of the signatures cannot be extended.

Note: Don’t forget to set header Content-Type: application/json

Last Updated: