Options control how a document generated through a Document Solution is rendered and delivered: PDF version and conformance, image resolution, Word track changes, sharing on OneDrive and Google Drive, Google generation behaviour, and more. Doctavian maintains the catalogue of available options as option definitions. They are read-only: you discover them, then set values for them on a configuration.
Options are set only on Document Solution Configurations. A one-call POST /documents/document/generate doesn't use option definitions; it takes its settings directly in document.options. See Generate Document.
GET /documents/option/definition/list and pick the one you need by its key. Each definition gives its id, type, default and, for choice options, its allowedValues.id, in options on configuration create or update, or in configurationDetails[].optionValues on solution create.GET /documents/option/DocumentSolutionConfiguration/{configurationId}/list. Each value names its option by optionDefinitionId and by effectiveKey, the definition's key.Values are always strings: "true" or "false" for a toggle, "300" for a number, and for a choice option one of the definition's allowedValues exactly as listed. An option id that matches no definition is skipped rather than rejected, so check the configuration's option values after saving it.
Look definition ids up by
keyin the environment you're calling rather than hard-coding them. The ids in the example below are for illustration.
POST https://api.doctavian.com/v1/documents/configuration/create
Authorization: Bearer <token>
x-api-key: <api-key>
Content-Type: application/json
{
"documentSolutionConfiguration": {
"documentSolutionId": "4c4b7221-9b88-486d-b2bb-3718866ebdd1",
"name": "Archive PDF",
"fileFormat": "pdf",
"deliveryMethod": "Storage",
"options": [
{ "optionDefinitionId": "fd4d6425-a871-4bcd-8f16-a088146bd924", "value": "PdfA2b" },
{ "optionDefinitionId": "8d254f60-aa38-4509-87de-74fa14702764", "value": "600" }
]
}
}See Document Solution Configurations for the other configuration fields.
Each definition belongs to an optionGroup: the output format or delivery target it applies to. List the definitions for each option's type, default and accepted values.
| Group | Option keys |
|---|---|
PDF (pdf) | pdf_version, pdf_compliance, pdf_image_dpi |
Word (docx) | docx_track_changes, docx_load_preserve |
Excel (xlsx) | xlsx_recalculate, xlsx_load_preserve |
PowerPoint (pptx) | pptx_author_name, pptx_load_preserve |
Google generation (googlegenerate), for Google-format templates only | google_gen_native_merge, google_gen_native_image_merge, google_gen_external_url |
OneDrive sharing (onedrive), when deliveryMethod is OneDrive | onedrive_view_users, onedrive_edit_users, onedrive_view_organization, onedrive_edit_organization, onedrive_view_anonymous, onedrive_edit_anonymous |
Google Drive sharing (googledrive), when deliveryMethod is GoogleDrive | gdrive_permissions, gdrive_view_users, gdrive_edit_users, gdrive_view_organization, gdrive_edit_organization, gdrive_view_anonymous, gdrive_edit_anonymous |
Salesforce (salesforce) | sf_api_version, sf_attach_objects, sf_owner_id, sf_file_type, sf_file_id, sf_file_parent_id, sf_network_id |
The PDF option defaults differ from the defaults a one-call generate request applies when it has no
pdfSaveOptions. See PDF settings.