This page shows which file formats work where: which outputs each template format can produce, where files can be loaded from and delivered to, the PDF settings, and which files each upload accepts.
Doctavian supports seven template formats across Microsoft and Google ecosystems. Each template format can produce a specific set of output formats, and every one can produce a PDF. Asking for an output the template can't produce fails the request.
Template (fileFormat) |
DOCX | XLSX | XLSM | CSV | PPTX | Google Doc | Google Sheet | Google Slide | |
|---|---|---|---|---|---|---|---|---|---|
DOCX (docx) | ✅ | ✅ | — | — | — | — | — | — | — |
XLSX (xlsx) | ✅ | — | ✅ | — | ✅ | — | — | — | — |
XLSM (xlsm) | ✅ | — | ✅ | ✅ | ✅ | — | — | — | — |
PPTX (pptx) | ✅ | — | — | — | — | ✅ | — | — | — |
Google Docs (gdoc) | ✅ | ✅ | — | — | — | — | ✅ | — | — |
Google Sheets (gsheet) | ✅ | — | ✅ | — | ✅ | — | — | ✅ | — |
Google Slides (gslide) | ✅ | — | — | — | — | ✅ | — | — | ✅ |
| Format | Template loadMethod | Output deliveryMethod |
|---|---|---|
docx, xlsx, xlsm, pptx | Storage or OneDrive | Storage or OneDrive |
gdoc, gsheet, gslide | GoogleDrive only | GoogleDrive only |
pdf, csv | — (output only) | Storage, OneDrive or GoogleDrive |
A template can also be located by a direct download url instead of urn + loadMethod. On a generate request, a delivery method the output format can't go to is rejected up front; on a Document Request it is accepted and the request ends in status Failed.
On a generate, manage or convert request, two settings control the PDF specification applied: the PDF/A conformance level and the PDF version. Set them in document.options.pdfSaveOptions (or targetDocument.options.pdfSaveOptions) as a JSON-serialized string, not a nested object. If omitted, the default is:
"pdfSaveOptions": "{ \"ConformanceLevel\": \"PdfA3a\", \"Version\": \"PDF_1_7\", \"ImageDpi\": 750, \"SelectionType\": \"EntireFile\" }"That default gives the widest PDF/A conformance, balances image size against quality, and, for a spreadsheet source, includes every sheet rather than just the active one. On a Document Solution Configuration, the equivalent settings are option values such as pdf_compliance and pdf_image_dpi; see Option Definitions.
ConformanceLevel sets the PDF/A standard, an ISO standard for archival PDFs that stay readable long-term. The values are PdfA1a, PdfA1b, PdfA2a, PdfA2b, PdfA2u, PdfA3a, PdfA3b and PdfA3u. The number is the PDF/A part; PDF/A-3 also allows embedded file attachments. The letter is the level: a adds full accessibility with tagged structure, b guarantees visual reproducibility only, and u adds Unicode text mapping. The default is PdfA3a.
Version sets the underlying PDF specification, from PDF_1_4 (broadest compatibility) to PDF_2_0. The default, PDF_1_7, suits most uses.
All uploads are multipart/form-data, accept several files per request, and are limited to 20 MB per file in Production and 10 MB in Staging.
| Operation | Accepted |
|---|---|
POST /documents/template/upload — templates for generation | .docx, .xlsx, .pptx |
POST /documents/data/upload — data for generation | .json files, or a raw application/json body |
POST /documents/document/upload — files to manage, merge or download | .docx, .pdf |
POST /signatures/document/upload — documents for envelopes | .docx, .pdf |
POST /signatures/envelope/{envelopeId}/attachment/upload — recipient attachments | Any file type |
For how long each storage id lasts and what it can be used for, see Storage and File IDs.
Google Docs, Sheets and Slides templates are not uploaded. Reference them on Google Drive with
loadMethod: "GoogleDrive". OneDrive templates can be referenced in place the same way; this is how to use an.xlsmtemplate, which the template upload does not accept.
A .docx uploaded for signing is converted to PDF when an envelope is created from it, because signing operates on PDF only. The converted PDF is the document recipients see and sign.
POST /documents/document/manage and POST /signatures/document/manage copy, move and convert files. The target format must be one the source can become:
Source fileFormat | Target fileFormat |
|---|---|
docx, gdoc | docx, pdf |
xlsx, gsheet | xlsx, pdf, csv |
pptx, gslide | pptx, pdf |
pdf | pdf |
Keeping the source's own format copies the file. See Convert, Copy and Move Documents. POST /documents/document/merge accepts PDF sources only and always produces a PDF. See Merge Documents.