Overview
Get supported PDF conversions
GET [signdoc-baseurl]/signdoc/convert/pdf/specs
Request
Key | Value |
---|
Content-Type | application/json |
Example request
GET [signdoc-baseurl]/signdoc/convert/pdf/specs |
Response
Code | Description | Example JSON response content |
---|
200 OK | List of currently supported PDF conversions. | { Â "pdfSpecs": [ "PDFA_2B" ] } |
Convert PDF documents
POST [signdoc-baseurl]/signdoc/convert/pdf
Request
Key | Value |
---|
Authorization | Bearer access_token |
Content-Type | application/json |
Request body
Key | Type / Description | Example JSON |
---|
documents
| JSON array of documents to be signed (minimum one). The document to be signed is represented as a JSON object: key | type | description | default value |
---|
pdfSpec
| string | Validates and if necessary converts the document (pdf) to specified PDF/A version and conformance level. Currently only PDFA_2B is currently supported and conversion is only active in production. | (required) | pdf
| string | Base64 encoded PDF | (required) |
| "documents": [ { Â "pdfSpec:" "PDFA_2B", "pdf": "JVBER..." } ] |
Example request
POST [signdoc-baseurl]/signdoc/convert/pdf Request body: { "documents": [ { Â Â Â Â Â Â "pdfSpec:" "PDFA_2B", "pdf": "JVBER..." { Â Â Â Â Â Â "pdfSpec:" "PDFA_2B", Â Â Â Â Â Â "pdf": "JVBER..." } ] } |
Response
Content-Type: application/json
Code | Description | Example JSON response content |
---|
200 OK | Successfully uploaded and converted document conversionWarnings contains an array of warnings that occurred during the conversion. Possible values are: - Â Â VISUAL_DIFF("Visual differences in output PDF")
- Â Â COLORANTS("Resolve name collisions of colorants")
- Â Â OCG_REMOVED("Removed optional content groups (layers)")
- Â Â TRANSP_REMOVED("Transparency removed")
- Â Â XMP_REMOVED("Removed non convertible XMP metadata")
- Â Â FONT_SUBST("Font substituted")
- Â Â ACTION_REMOVED( "Removed interactive elements such as actions or annotations")
- Â Â STRUCTURE_REMOVED("Structure removed")
In CURRENT the response will always be DISABLED("PDF conversion is disabled") and "converted" = false | {  "conversionResults": [     {       "conversionId": "d886b218-af9f-4765-a9e1-d819fec6abbe",       "description": "My order name - 1",       "converted": true,       "conversionErrors": [],       "conversionWarnings": [         "Visual differences in output PDF",         "Removed interactive elements such as actions or annotations"       ]     }, "convertedDocument": "JVBERi0xLjcKJ"     {       "conversionId": "1b4c673a-9d9e-4680-8aa2-810a31d50d8c",       "description": "My order name - 2",       "converted": true,       "conversionErrors": [],       "conversionWarnings": [         "Visual differences in output PDF",         "Removed interactive elements such as actions or annotations"       ]    }, "convertedDocument": "JVBERi0xLjcKJ"   ] } |
400 Bad request | Could not convert order due to error in request. Documents that could not be converted will have a list of errors in conversionErrors. Possible conversionErrors are: - CORRUPT("Document is corrupt")
- DOC_SIGNED("Document contains signatures")
- EF_REMOVED("Embedded files removed")
- GENERIC_ERROR("Unknown error")
- DISABLED("PDF conversion is disabled")Â
| { Â Â "conversionResults": [ Â Â Â Â { Â Â Â Â Â Â "conversionId": "90c3803b-5e90-400c-b945-02ce223d65be", Â Â Â Â Â Â "description": null, Â Â Â Â Â Â "converted": true, Â Â Â Â Â Â "conversionErrors": [], Â Â Â Â Â Â "conversionWarnings": [ Â Â Â Â Â Â Â Â "Visual differences in output PDF", Â Â Â Â Â Â Â Â "Removed interactive elements such as actions or annotations" Â Â Â Â Â Â ] Â Â Â Â }, Â Â Â Â { Â Â Â Â Â Â "conversionId": "fe7c3db8-e586-4253-960b-771ba6d170a1", Â Â Â Â Â Â "description": null, Â Â Â Â Â Â "converted": true, Â Â Â Â Â Â "conversionErrors": [], Â Â Â Â Â Â "conversionWarnings": [ Â Â Â Â Â Â Â Â "Visual differences in output PDF", Â Â Â Â Â Â Â Â "Removed interactive elements such as actions or annotations" Â Â Â Â Â Â ] Â Â Â Â }, Â Â Â Â { Â Â Â Â Â Â "conversionId": "d796513c-ae65-4a9b-a3ae-f6652d4f7a2b", Â Â Â Â Â Â "description": null, Â Â Â Â Â Â "converted": false, Â Â Â Â Â Â "conversionErrors": [ Â Â Â Â Â Â Â Â "Document contains signatures" Â Â Â Â Â Â ], Â Â Â Â Â Â "conversionWarnings": [] Â Â Â Â } Â Â ] } |
403 Forbidden | Access token is invalid. | AccessToken is invalid - Please provide reference: AbcDEf if reporting the problem. |