Skip to main content
Convert a document's main file to PDF

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

id
string
required

Identifier of the document whose main file is converted.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

Body

application/json
detectSignatures
boolean

Scans the produced PDF for form fields that look like signature placeholders and adds the sign fields it recognizes to the document; the markers that could not be used are returned in faultySignFields. When omitted, the document's metadata definition decides.

forcePdfA
boolean | null
default:false

Converts to PDF/A even when the main file already carries a signature, which the conversion destroys. Without it a signed file is left alone so that its signature survives. It only has an effect together with usePdfA.

Example:

false

usePdfA
boolean | null
default:false

Produces PDF/A, the archival profile that embeds everything needed to reproduce the file later. It changes how the document looks in places, and once a document is on PDF/A it cannot be taken off it.

Example:

false

Response

The main file was replaced with its PDF rendition. With detectSignatures, the signature field markers that could not be used are returned in faultySignFields.

faultySignFields
object[]

Signature field markers found in the converted PDF that could not be used - a {{cir:...}} tag that describes no usable field, or an original signature_field_start:{...}:signature_field_end marker that is not valid JSON, cannot be read, or is in no rectangle to take its position from. Each is left in the document so it stays visible; the fields that could be used are stored on the document. Empty unless detectSignatures is set.

status
string

Status of the current action.

Example:

"SUCCESS"