Developer API

Tool reference

Every tool you can run with POST /api/v2/document-operations: its options, accepted inputs, extra inputs and asset files.

How options are checked

These 49 tools are the same ones the website tools and the Documents dashboard run, with the same options. Every request is checked against this reference before any work starts or anything is charged. An unknown option, a value outside its choices or range, a missing option that the selected mode requires, a missing required asset or the wrong number of inputs returns 400 OPERATION_INPUT_INVALID. An input or asset of a type or size the tool does not accept returns 422 OPERATION_INPUT_UNSUPPORTED.

A number sent for a text choice ("angle": 90) is read as that choice, and the text "true" is read as a boolean. Options marked secret are stored encrypted and returned as [redacted].

File size: your plan's upload limit applies to every input. Free 100 MB; Developer D1 and D2 100 MB; Developer D3 200 MB per file (1 MB = 1,048,576 bytes). Files above 50 MB use the chunked upload (POST /api/v2/uploads).

The SDKs type the same options: ToolParameters and TOOLS in TypeScript, TOOL_PARAMETERS and TOOLS in Python, wellfriend.Tools in Go. The MCP tool tools_catalog lists them too.

Merge three PDFs
{
  "documentId": "doc_first",
  "toolId": "merge-pdf",
  "inputs": [
    {
      "documentId": "doc_second"
    },
    {
      "documentId": "doc_third",
      "versionId": "ver_third"
    }
  ],
  "idempotencyKey": "merge-2026-11-06-1"
}
Sign with a PKCS#12 certificate
{
  "documentId": "doc_contract",
  "toolId": "sign-pdf",
  "parameters": {
    "signatureType": "digital",
    "certificatePassphrase": "••••",
    "page": 1,
    "position": "bottom-right"
  },
  "assets": {
    "certificateFile": {
      "content": "<base64 of the .p12 file>",
      "fileName": "signer.p12"
    }
  },
  "idempotencyKey": "sign-2026-11-06-1"
}
Image watermark
{
  "documentId": "doc_report",
  "toolId": "add-watermark",
  "parameters": {
    "type": "image",
    "opacity": 0.3,
    "position": "middle-center"
  },
  "assets": {
    "watermarkImage": {
      "documentId": "doc_logo"
    }
  },
  "idempotencyKey": "wm-2026-11-06-1"
}

Add Page Numbers (add-page-numbers)

Insert numbered headers or footers.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Fonts: see /docs/fonts.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=add-page-numbers

OptionTypeValuesDefaultUsed whenDescription
positionenumtop-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center, bottom-right, diagonalmiddle-centerNumber placement.
positionModeenumpreset, custompresetUse a placement preset or percentage coordinates.
xPercentnumber0 to 10050positionMode = customHorizontal center for custom placement.
yPercentnumber0 to 10050positionMode = customVertical center for custom placement.
scalenumber0.1 to 41Size multiplier applied to fontSize.
formatenumnumber, page-number, number-of-total, dashes, customnumberPage-number text format.
template (required when used)stringtextformat = customCustom template using {n} and {total}. Required in custom format.
prefixstringtextText before the generated page number, up to 40 characters.
suffixstringtextText after the generated page number, up to 40 characters.
pageModeenumsingle, facingsingleSingle placement or mirrored facing-page placement.
facingPlacementenumoutside, insideoutsidepageMode = facingPlace facing-page numbers inside or outside.
startNumbernumber1 to 10000001Number assigned to the first selected PDF page.
fontSizenumber8 to 18060Number font size in points, before scale is applied.
fontFamilystringtexthelveticaNumber font: helvetica, times or courier (standard PDF fonts); gf:<id> embeds a family of the font catalog (/docs/fonts: every Google Fonts family, all scripts, shaped for Devanagari, Bengali, Tamil, Telugu and Arabic); u:<id> one of your uploaded fonts (the id from your fonts in the Document editor; another person's or a deleted font is refused).
fontStyleenumregular, bold, italic, bold-italicregularFont style.
xOffsetnumbertext0Fine horizontal offset in PDF points. Positive moves right.
yOffsetnumbertext0Fine vertical offset in PDF points. Positive moves down.
marginnumber0 to 24036Page-edge margin in PDF points for preset placement.
rotationnumber-360 to 360 degreesTurn of the number in degrees, counter-clockwise, from -360 to 360 (decimals allowed; 0 and 360 are upright). The number sits at its spot, and stays whole on the page, by the box it covers once turned. When omitted it is 45 for the diagonal position, otherwise 0.
colorstringtext#2e2e2eNumber color as a six-digit hex value.
pagesstringtextPages to number; blank numbers every page. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
outputNamestringtextOutput file name without a path; the extension is added for you.

Add Watermark (add-watermark)

Stamp text or image onto pages.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Fonts: see /docs/fonts.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=add-watermark

Asset file watermarkImage (a stored document version {documentId, versionId}; .avif .jpeg .jpg .png .tif .tiff .webp; up to 20 MiB): required when type = image.

OptionTypeValuesDefaultUsed whenDescription
typeenumtext, imagetextText or image watermark.
text (required when used)stringtexttype = textWatermark text, up to 120 characters. Required in text mode.
opacitynumber1 to 100 %35Opacity from 1 to 100 percent.
layerenumover, belowoverDraw over or below page content.
patternenumsingle, tilesingleSingle or tiled watermark.
tileSpacingnumber60 to 600180pattern = tileTile spacing in PDF points.
rotationnumber-360 to 360 degrees45Rotation in degrees, counter-clockwise.
positionenumtop-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center, bottom-rightmiddle-centerPreset placement, one of nine spots. A custom spot uses positionMode=custom with xPercent and yPercent.
positionModeenumpreset, custompresetUse a placement preset or percentage coordinates.
xPercentnumber0 to 10050positionMode = customHorizontal centre of the watermark as a percentage of the page width; the watermark is kept inside the page.
yPercentnumber0 to 10050positionMode = customVertical centre of the watermark as a percentage of the page height, from the top; the watermark is kept inside the page.
scalenumber5 to 100 %34type = imageWidth of an image watermark as a percentage of the page width.
fontSizenumber8 to 18060type = textText watermark font size in points.
fontFamilystringtexthelveticatype = textText-watermark font: helvetica, times or courier (standard PDF fonts); gf:<id> embeds a family of the font catalog (/docs/fonts: every Google Fonts family, all scripts, shaped for Devanagari, Bengali, Tamil, Telugu and Arabic); u:<id> one of your uploaded fonts (the id from your fonts in the Document editor; another person's or a deleted font is refused).
fontStyleenumregular, bold, italic, bold-italicregulartype = textText-watermark font style.
xOffsetnumber-240 to 2400Fine horizontal offset in PDF points. Positive moves right.
yOffsetnumber-240 to 2400Fine vertical offset in PDF points. Positive moves down.
colorstringtext#2e2e2etype = textText color as a six-digit hex value.
pagesstringtextPages to watermark; blank applies to every page. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
outputNamestringtextOutput file name without a path; the extension is added for you.

Check PDF (check-pdf)

One report on PDF/A conformance, PDF/UA accessibility and digital signatures.

Inputs: 1 of application/pdf. Output: JSON report (application/json): PDF/A conformance, PDF/UA accessibility and digital signatures, each with a pass, warn or fail summary and its details.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=check-pdf

OptionTypeValuesDefaultUsed whenDescription
checkPdfabooleantrue, falsetrueCheck PDF/A archival conformance.
targetProfileenumpdfa-1b, pdfa-2b, pdfa-2u, pdfa-3b, pdfa-3updfa-2bcheckPdfa = truePDF/A profile to check against.
checkPdfuabooleantrue, falsetrueCheck the PDF/UA accessibility rules a machine can test.
checkSignaturesbooleantrue, falsetrueValidate every digital signature: integrity, certificate and trust.
outputNamestringtextOutput file name without a path; the extension is added for you.

Compress (compress-pdf)

Make PDFs and images smaller without changing how they look.

Inputs: 1 of application/pdf, image/jpeg, image/png, image/webp, image/gif, image/tiff, image/bmp, image/avif. Output: The PDF, compressed (application/pdf); an image comes back in its own format (JPEG, PNG, WebP, GIF, TIFF, BMP or AVIF) at the same pixel size, never larger than the input.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=compress-pdf

OptionTypeValuesDefaultUsed whenDescription
profileenumbest, medium, aggressive_lossless, aggressive_maxbestCompression profile, for PDFs and images alike. best keeps the highest quality, medium balances size and quality, aggressive_lossless is the strongest compression that never changes how pages look (an image keeps every pixel), aggressive_max makes the smallest files. The output is never larger than the input: when nothing smaller is valid the original is returned.
fastWebViewbooleantrue, falsefalseOptimise for fast web view (linearize): a browser shows the first page while the rest downloads. Runs after compression and never compresses again.
targetSizenumber0.01 to 2097152Target output size in targetUnit (1 KB = 1024 bytes). Wellfriend tries the chosen profile first and, only if needed, stronger profiles (a lossless profile stays lossless). The result reports whether the target was reached or the closest valid output was returned.
targetUnitenumkb, mbmbThe unit of the target size.
targetSizeTolerancePercentnumber5 to 10 %7.5How far above the target the output may land and still count as reaching it.
metadataenumkeep, stripkeepImages only: keep copies the image's details (EXIF, XMP, text, colour profile); strip removes them but keeps the orientation and the colour profile, so the image still looks the same. A PDF ignores it.
outputNamestringtextOutput file name without a path; the extension is added for you.

Convert from JPG (convert-from-jpg)

Export JPG files to another image format.

Inputs: 1 of image/jpeg. Output: Image in targetFormat: PNG, WebP, AVIF, or TIFF.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=convert-from-jpg

OptionTypeValuesDefaultUsed whenDescription
targetFormatenumpng, webp, avif, tiffpngTarget image format.
presetenumrecommended, smaller, high-qualityrecommendedtargetFormat = webp or avifOutput quality preset for lossy target formats.
qualitynumber1 to 100 %targetFormat = webp or avifExact encoder quality. When supplied, this overrides the preset.
outputNamestringtextOutput file name without a path; the extension is added for you.

Convert to JPG (convert-to-jpg)

Convert supported images to JPG.

Inputs: 1 of image/png, image/webp, image/avif, image/tiff, image/jpeg. Output: JPG image (image/jpeg).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=convert-to-jpg

OptionTypeValuesDefaultUsed whenDescription
presetenumrecommended, smaller, high-qualityrecommendedJPG quality preset.
qualitynumber1 to 100 %Exact JPG encoder quality. When supplied, this overrides the preset.
backgroundstringtext#ffffffBackground used to flatten transparent pixels, as a six-digit hex color.
outputNamestringtextOutput file name without a path; the extension is added for you.

Crop Image (crop-image)

Crop an image to exact dimensions.

Inputs: 1 of image/jpeg, image/png, image/webp, image/avif, image/tiff. Output: Processed image (same family as input).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=crop-image

OptionTypeValuesDefaultUsed whenDescription
x (required)number0 to 19999 pxLeft offset.
y (required)number0 to 19999 pxTop offset.
width (required)number1 to 20000 pxCrop width.
height (required)number1 to 20000 pxCrop height.
outputFormatenumsame, jpg, png, webp, avif, tiffsameKeep the input format or encode a specific output format.
qualitynumber1 to 100 %82Lossy encoder quality for JPG, WebP, or AVIF output (AVIF defaults to 55).
backgroundstringtext#ffffffSix-digit hex background used when transparent pixels are encoded as JPG.
outputNamestringtextOutput file name without a path; the extension is added for you.

Crop PDF (crop-pdf)

Trim the margins of every page or the pages you pick.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=crop-pdf

OptionTypeValuesDefaultUsed whenDescription
topnumber0 to 20000Points to trim from the top of each page.
rightnumber0 to 20000Points to trim from the right of each page.
bottomnumber0 to 20000Points to trim from the bottom of each page.
leftnumber0 to 20000Points to trim from the left of each page.
pagesstringtextPages to crop; blank crops every page. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
outputNamestringtextOutput file name without a path; the extension is added for you.

CSV to PDF (csv-to-pdf)

Convert CSV tables into a readable PDF.

Inputs: 1 of text/csv, text/plain. Output: PDF document (application/pdf).

Fonts: see /docs/fonts.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=csv-to-pdf

OptionTypeValuesDefaultUsed whenDescription
pageSizeenuma4, letter, a3a4Output page size.
orientationenumportrait, landscapeportraitOutput page orientation.
fontSizenumber6 to 149Body font size in points.
marginnumber18 to 10854Page margin in PDF points.
fontFamilystringtextBody font: blank keeps DejaVu Sans; helvetica, times or courier uses that standard PDF font; gf:<id> uses a family of the font catalog (/docs/fonts: every Google Fonts family, all scripts); u:<id> one of your uploaded fonts; embedded in the PDF.
delimiterenumcomma, semicolon, tab, pipecommaColumn delimiter of the CSV.
headerRowbooleantrue, falsetrueTreat the first row as a header.
outputNamestringtextOutput file name without a path; the extension is added for you.

Check & Edit Metadata (edit-metadata)

Review and update document information.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf), or a ZIP of PDFs in batch mode (application/zip).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=edit-metadata

OptionTypeValuesDefaultUsed whenDescription
presetenumprivacy-cleanup, keep-title-only, remove-author-creator-producer, clear-all, customMetadata cleanup preset. When omitted, only the fields you send are written. ai-suggest fills title, subject and keywords from the first pages in AI mode; values you send win.
titlestringtextPDF title metadata. An empty value clears it.
authorstringtextPDF author metadata. An empty value clears it.
subjectstringtextPDF subject metadata. An empty value clears it.
keywordsstringtextPDF keyword metadata. An empty value clears it.
creatorstringtextPDF creator metadata. An empty value clears it.
producerstringtextPDF producer metadata. An empty value clears it.
outputNamestringtextOutput file name without a path; the extension is added for you.

Excel to PDF (excel-to-pdf)

Convert spreadsheet files to PDF.

Inputs: 1 of application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.oasis.opendocument.spreadsheet. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=excel-to-pdf

OptionTypeValuesDefaultUsed whenDescription
outputNamestringtextOutput file name without a path; the extension is added for you.

Flatten PDF (flatten-pdf)

Merge form fields into static pages.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=flatten-pdf

OptionTypeValuesDefaultUsed whenDescription
flattenFormsbooleantrue, falsetrueBake form-field values into the page.
flattenAnnotationsbooleantrue, falsefalseFlatten supported annotation appearances.
flattenLayersbooleantrue, falsefalseFlatten optional-content layers.
rasterizebooleantrue, falsefalseRender pages to images and rebuild a static PDF. When true, the three flatten options are skipped.
dpinumber72 to 300 dpi150rasterize = trueRaster resolution.
outputNamestringtextOutput file name without a path; the extension is added for you.

Image Metadata (image-metadata)

Read an image's format, size, colour mode, frames and EXIF facts.

Inputs: 1 of image/png, image/jpeg, image/webp, image/gif. Output: JSON metadata report: format, width, height, colour mode, frames and EXIF summary (application/json).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=image-metadata

OptionTypeValuesDefaultUsed whenDescription
outputNamestringtextOutput file name without a path; the extension is added for you.

Image to PDF (image-to-pdf)

Combine supported image files into a single PDF.

Inputs: 1 to 50 (documentId plus inputs, in order) of image/png, image/jpeg, image/webp. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=image-to-pdf

OptionTypeValuesDefaultUsed whenDescription
pageSizeenuma4, letter, matcha4Output page size. match sizes each page to its image.
orientationenumauto, portrait, landscapeautopageSize = a4 or letterOutput page orientation.
marginnumber0 to 7210Image margin in PDF points.
outputNamestringtextOutput file name without a path; the extension is added for you.

JSON to PDF (json-to-pdf)

Render structured JSON into a readable PDF.

Inputs: 1 of application/json, text/plain. Output: PDF document (application/pdf).

Fonts: see /docs/fonts.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=json-to-pdf

OptionTypeValuesDefaultUsed whenDescription
pageSizeenuma4, letter, a3a4Output page size.
orientationenumportrait, landscapeportraitOutput page orientation.
fontSizenumber6 to 149Body font size in points.
marginnumber18 to 10854Page margin in PDF points.
fontFamilystringtextBody font: blank keeps DejaVu Sans; helvetica, times or courier uses that standard PDF font; gf:<id> uses a family of the font catalog (/docs/fonts: every Google Fonts family, all scripts); u:<id> one of your uploaded fonts; embedded in the PDF.
outputNamestringtextOutput file name without a path; the extension is added for you.

Markdown to PDF (markdown-to-pdf)

Convert Markdown content into a PDF document.

Inputs: 1 of text/markdown, text/plain. Output: PDF document (application/pdf).

Fonts: see /docs/fonts.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=markdown-to-pdf

OptionTypeValuesDefaultUsed whenDescription
pageSizeenuma4, letter, a3a4Output page size.
orientationenumportrait, landscapeportraitOutput page orientation.
fontSizenumber7 to 2211Body font size in points.
marginnumber18 to 10854Page margin in PDF points.
fontFamilystringtextBody font: blank keeps DejaVu Sans; helvetica, times or courier uses that standard PDF font; gf:<id> uses a family of the font catalog (/docs/fonts: every Google Fonts family, all scripts); u:<id> one of your uploaded fonts; embedded in the PDF.
outputNamestringtextOutput file name without a path; the extension is added for you.

Merge PDF (merge-pdf)

Combine multiple PDFs into one file.

Inputs: 2 to 30 (documentId plus inputs, in order) of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=merge-pdf

OptionTypeValuesDefaultUsed whenDescription
filePagesstringtextThe pages taken from each file, in merge order, separated by semicolons; blank (or nothing between two semicolons) takes every page of that file. Each entry uses page numbers and ranges, e.g. 1-3;;2,5 takes pages 1-3 of the first file, all of the second and pages 2 and 5 of the third.
fileRotationsstringtextA clockwise turn for each file, in merge order, comma-separated: 0, 90, 180 or 270, e.g. 0,90 turns every page of the second file a quarter turn.
outputNamestringtextOutput file name without a path; the extension is added for you.

N-up PDF (n-up-pdf)

Put several pages on each sheet.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=n-up-pdf

OptionTypeValuesDefaultUsed whenDescription
pagesPerSheetenum2, 4, 6, 8, 9, 162How many pages go on each sheet, in reading order.
gapnumber0 to 720Space between the pages and around the sheet, in points.
outputNamestringtextOutput file name without a path; the extension is added for you.

OCR PDF (ocr-pdf)

Recognise the text of a scanned PDF or an image (PNG, JPEG, TIFF or WebP).

Inputs: 1 of application/pdf, image/png, image/jpeg, image/tiff, image/webp, image/gif, image/bmp, image/avif, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv, text/tab-separated-values, message/rfc822, application/vnd.ms-outlook, application/zip. Output: Searchable PDF (application/pdf), or the recognised text as plain text, Markdown, JSON, DOCX, HTML, XLSX, CSV, hOCR, ALTO XML, block JSON or annotation JSON, as chosen by outputMode; further formats (outputs) are listed in the result metadata.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=ocr-pdf

OptionTypeValuesDefaultUsed whenDescription
modeenumread, extractreadread gives the full text of every page in reading order with the layout kept; extract gives fields, tables and line items as checked data (use templateId, queries or schema to say which).
languagesstringtextenLanguages on the page, as comma-separated codes from the OCR language list, at most 10, such as "en,hi"; auto detects them.
outputModeenumsearchable-pdf, text, markdown, json, docx, html, xlsx, csv, hocr, alto, block-json, annotation-jsonsearchable-pdfThe result document: a searchable PDF with an invisible text layer, or the recognised text as plain text, Markdown, JSON, Word, HTML, Excel, CSV, hOCR, ALTO XML, block JSON or annotation JSON (every format the dashboard OCR offers).
outputsstringtextFurther formats from the same result, comma-separated output formats, such as "text,xlsx". Each becomes its own derived document, listed in the operation's result metadata (outputs).
featuresstringtexttext,layoutWhat to read, comma-separated: text, layout, tables, forms (labels and their filled values), signatures. Questions (queries) add the queries feature by themselves.
qualityenumfast, standard, highstandardRecognition quality: fast for clean prints, standard for most scans, high for difficult scans, handwriting and small print.
pageRangestringtextOptional pages to read; blank means all pages. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
templateIdstringtextmode = extractExtract with one of your saved OCR templates (an ocrtpl_ id from Dashboard, OCR, Templates; it must be ready). Use a template, queries or a schema, not more than one.
queriesstringtextQuestions to answer from the document, one per line, up to 30 of up to 200 characters, such as "What is the policy number?".
schemastringtextmode = extractExtract only: the fields to extract, as a JSON schema object (up to 64 KB).
shapingstringtextmode = extractExtract only: the columns and number style of the Excel and CSV outputs, as a JSON object; the template's layout or the default when empty.
password (secret)stringtextThe PDF's open password, for a locked PDF. Used for this job only; never stored or shown again.
saveHistorybooleantrue, falsefalseKeep the OCR results for 30 days and list the job in your OCR history (otherwise they are deleted after 1 hour).
webhookUrlstringtextAn OCR webhook endpoint registered on your account (Dashboard, OCR, Webhooks), told when the OCR job ends.
priorityenumstandard, batchstandardbatch costs half the credits and can take up to 45 minutes; jobs over 200 pages always run as batch.
outputNamestringtextOutput file name without a path; the extension is added for you.

Organize PDF (organize-pdf)

Reorder pages and remove the ones you leave out.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=organize-pdf

OptionTypeValuesDefaultUsed whenDescription
order (required)stringtextFinal one-based page sequence to keep; omitted pages are removed. Page numbers and ranges separated by commas, up to 20000 characters; a descending range reverses its pages, so 532-1 reverses a 532-page document and 1-10,20,15-12 keeps pages 1 to 10, then 20, then 15 down to 12. Each page may appear once.
rotationsstringtextOptional clockwise rotations applied after reordering, as page:angle pairs on the reordered pages (1 is the first page of the result), e.g. 1:90,3:180. Angles are 90, 180, 270 or -90.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF Table Extraction (pdf-table-extraction)

Extract table-like content from PDF text.

Inputs: 1 of application/pdf. Output: ZIP of CSV files, one per detected table (application/zip).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-table-extraction

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextOptional pages to read; blank means all pages. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to Chunks (pdf-to-chunks)

Split the text of a PDF into chunks for search and AI retrieval.

Inputs: 1 of application/pdf. Output: JSON chunks (application/json): text chunks with their page ranges, for retrieval.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-chunks

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextPages to convert; blank converts every page. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
chunkSizenumber200 to 80001500Target characters per chunk.
overlapnumber0 to 4000150Characters repeated from the previous chunk (at most half the chunk size).
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to EPUB (pdf-to-epub)

Create a text-based EPUB from PDF content.

Inputs: 1 of application/pdf. Output: EPUB e-book (application/epub+zip).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-epub

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextOptional pages to read; blank means all pages. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
titlestringtextEPUB title. When omitted, the input file name is used.
authorstringtextWellfriendEPUB author.
chapterSplitenumheadings, pagesheadingsStart chapters at detected headings, or every pagesPerChapter pages.
pagesPerChapternumber1 to 50010chapterSplit = pagesPages per chapter in pages split.
includeImagesbooleantrue, falsetrueInclude the PDF's images in the book.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to Excel (pdf-to-excel)

Export detected PDF tables into XLSX.

Inputs: 1 of application/pdf. Output: XLSX spreadsheet (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-excel

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextOptional pages to read; blank means all pages. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
sheetLayoutenumone, multiplemultipleCombine tables or create separate sheets.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to HTML (pdf-to-html)

Convert the text of a PDF into a clean web page.

Inputs: 1 of application/pdf. Output: HTML document (text/html), one section per page, no scripts.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-html

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextPages to convert; blank converts every page. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to Images (pdf-to-images)

Export pages or embedded images from a PDF.

Inputs: 1 of application/pdf. Output: ZIP of JPG images, one per page or extracted image (application/zip).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-images

OptionTypeValuesDefaultUsed whenDescription
exportModeenumpages, extract-imagespagesRender pages or extract embedded raster images.
qualityenumnormal, recommended, highrecommendedJPG preset: normal 120 dpi, recommended 170 dpi, high 220 dpi. In extract-images mode only the JPG quality applies.
pageRangestringtextexportMode = pagesOptional pages to render; blank means all pages. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
imageFormatenumjpg, pngjpgexportMode = pagesImage format of rendered pages: JPG (smaller) or lossless PNG.
dpinumber72 to 600 dpiexportMode = pagesRender resolution. When set it replaces the quality preset's resolution.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to JSON (pdf-to-json)

Export PDF text as structured JSON.

Inputs: 1 of application/pdf. Output: Structured JSON (application/json).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-json

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextOptional pages to read; blank means all pages. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
breakModeenumline, word, spacelineJSON token grouping.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to Markdown (pdf-to-markdown)

Convert extracted PDF text into Markdown.

Inputs: 1 of application/pdf. Output: Markdown (text/markdown).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-markdown

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextOptional pages to read; blank means all pages. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to PowerPoint (pdf-to-powerpoint)

Turn every page into a slide of a PowerPoint deck.

Inputs: 1 of application/pdf. Output: PowerPoint deck (application/vnd.openxmlformats-officedocument.presentationml.presentation), one slide per page with its text as the picture description.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-powerpoint

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextPages to convert; blank converts every page. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
dpinumber72 to 200150Resolution of each slide picture.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to Text (pdf-to-text)

Extract selectable or OCR text from a PDF.

Inputs: 1 of application/pdf. Output: Plain text (text/plain).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-text

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextOptional pages to read; blank means all pages. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
includePageNumbersbooleantrue, falsefalseMark where each page starts in the text.
readingOrderenumlayout, rawlayoutlayout recovers the reading order across columns and blocks; raw keeps the content-stream order, which is faster on simple single-column pages.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF to Word (pdf-to-word)

Convert extracted PDF text into editable DOCX.

Inputs: 1 of application/pdf. Output: DOCX document (application/vnd.openxmlformats-officedocument.wordprocessingml.document).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdf-to-word

OptionTypeValuesDefaultUsed whenDescription
pageRangestringtextOptional pages to read; blank means all pages. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
layoutenumflowing, page-faithful, hybridflowingflowing writes editable flowing text; page-faithful keeps each page's layout; hybrid keeps page breaks with flowing text.
includeImagesbooleantrue, falsetrueExport the PDF's images as pictures in the document.
outputNamestringtextOutput file name without a path; the extension is added for you.

PDF/A Conversion (pdfa-conversion)

Convert a PDF to PDF/A for long-term archiving.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=pdfa-conversion

OptionTypeValuesDefaultUsed whenDescription
targetProfileenumpdfa-1b, pdfa-2b, pdfa-2u, pdfa-3b, pdfa-3updfa-2bPDF/A conformance level to convert to. The u levels also require Unicode text mapping.
allowDowngradebooleantrue, falsetrueRecorded in the result metadata; it does not change the conversion.
outputNamestringtextOutput file name without a path; the extension is added for you.

PowerPoint to PDF (powerpoint-to-pdf)

Convert presentation files to PDF.

Inputs: 1 of application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.oasis.opendocument.presentation. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=powerpoint-to-pdf

OptionTypeValuesDefaultUsed whenDescription
outputNamestringtextOutput file name without a path; the extension is added for you.

Protect PDF (protect-pdf)

Lock a file with a password.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=protect-pdf

OptionTypeValuesDefaultUsed whenDescription
password (required) (secret)stringtextPassword to set, up to 256 characters.
allowPrintbooleantrue, falsetrueAllow printing.
allowCopybooleantrue, falsetrueAllow text and image extraction.
allowEditbooleantrue, falsefalseAllow document editing.
allowAnnotatebooleantrue, falsefalseAllow comments and annotations.
ownerPassword (secret)stringtextSeparate owner (permissions) password, up to 256 characters. When omitted the owner password is the open password.
encryptionenumaes-256, aes-128aes-256Encryption algorithm. aes-256 is read by every current PDF reader; aes-128 is the legacy PDF 1.6 algorithm for older readers.
outputNamestringtextOutput file name without a path; the extension is added for you.

Redact PDF (redact-pdf)

Permanently remove text, images and areas you choose.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=redact-pdf

OptionTypeValuesDefaultUsed whenDescription
regionsstringtextAreas to remove, as page:x,y,width,height in PDF points from the page's bottom-left corner (the PDF's own user space), separated by semicolons, e.g. 1:72,640,200,40;3:50,100,120,30. A turned area adds its angle as a fifth value, degrees counter-clockwise about the area's centre from -360 to 360, e.g. 1:72,640,200,40,30 (a multiple of 90 is an upright area). Everything under an area is removed: text, vector art and the covered part of images; a turned area is painted in its own shape.
searchTermsstringtextWords or phrases to remove wherever they appear, one per line. Matching is exact and case-sensitive, as written.
patternsstringtextKinds of data to find and remove, comma-separated: email, phone, number (sequences of 4 or more digits, such as account or card numbers), date. Matches are found in the PDF's text and removed like search terms.
pagesstringtextPages searched for terms and patterns; blank searches every page. Areas carry their own page. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
imagePolicyenumpartial, removepartialWhat happens to an image under an area: partial removes only the covered pixels; remove deletes every image an area touches.
keepMetadatabooleantrue, falsefalseKeep the document information, XMP and attachment names even when they contain a removed term. By default they are scrubbed too.
outputNamestringtextOutput file name without a path; the extension is added for you.

Repair PDF (repair-pdf)

Fix corrupted or broken PDF files.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=repair-pdf

OptionTypeValuesDefaultUsed whenDescription
levelenumstandard, deepstandardRepair depth. deep rebuilds the whole object structure.
outputNamestringtextOutput file name without a path; the extension is added for you.

Resize Image (resize-image)

Change image dimensions precisely.

Inputs: 1 of image/jpeg, image/png, image/webp, image/avif, image/tiff. Output: Processed image (same family as input).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=resize-image

OptionTypeValuesDefaultUsed whenDescription
modeenumpixels, percentagepixelsResize by pixels or percentage.
widthnumber1 to 20000 pxmode = pixelsTarget width. Send width, height, or both.
heightnumber1 to 20000 pxmode = pixelsTarget height. Send width, height, or both.
percentagenumber1 to 400 %100mode = percentageScale percentage.
maintainAspectbooleantrue, falsetruemode = pixelsPreserve the source aspect ratio when only one of width or height is sent.
noEnlargebooleantrue, falsetrueDo not upscale images smaller than the requested size.
fitenuminside, cover, fillinsideHow to fit the box.
kernelenumnearest, cubic, mitchell, lanczos2, lanczos3lanczos3Pixel resampling kernel used by the image encoder.
outputFormatenumsame, jpg, png, webp, avif, tiffsameKeep the input format or encode a specific output format.
qualitynumber1 to 100 %82Lossy encoder quality for JPG, WebP, or AVIF output (AVIF defaults to 55).
backgroundstringtext#ffffffSix-digit hex background used when transparent pixels are encoded as JPG.
outputNamestringtextOutput file name without a path; the extension is added for you.

Rotate Image (rotate-image)

Correct image orientation.

Inputs: 1 of image/jpeg, image/png, image/webp, image/avif, image/tiff. Output: Processed image (same family as input).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=rotate-image

OptionTypeValuesDefaultUsed whenDescription
actionenumauto, left, right, 180, flip-horizontal, flip-verticalrightRotation or flip preset. auto applies the EXIF orientation only; left, right and 180 rotate; flip-horizontal and flip-vertical mirror.
anglenumber-360 to 360 degreesExact clockwise rotation. When supplied, it overrides left, right, and 180 actions.
flipHorizontalbooleantrue, falsefalseMirror left to right, before the turn, in the same run.
flipVerticalbooleantrue, falsefalseMirror top to bottom, before the turn, in the same run.
backgroundstringtext#ffffffSix-digit hex fill for corners created by a non-right-angle rotation or JPG transparency flattening.
outputFormatenumsame, jpg, png, webp, avif, tiffsameKeep the input format or encode a specific output format.
qualitynumber1 to 100 %82Lossy encoder quality for JPG, WebP, or AVIF output (AVIF defaults to 55).
outputNamestringtextOutput file name without a path; the extension is added for you.

Rotate PDF (rotate-pdf)

Rotate all or specific pages.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=rotate-pdf

OptionTypeValuesDefaultUsed whenDescription
angleenum90, 180, 27090Clockwise rotation in degrees.
pageModeenumall, specificallRotate all pages or a specific page set.
pages (required when used)stringtextpageMode = specificPages to rotate. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last. Required in specific mode.
rotationsstringtextMixed per-page rotations as comma-separated page:angle pairs, e.g. 1:90,3:180. When set, it replaces angle, pageMode, and pages.
outputNamestringtextOutput file name without a path; the extension is added for you.

Sanitize PDF (sanitize-pdf)

Remove JavaScript, launch actions and embedded files.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=sanitize-pdf

OptionTypeValuesDefaultUsed whenDescription
keepEmbeddedFilesbooleantrue, falsefalseKeep embedded files and file attachments.
removeMetadatabooleantrue, falsefalseAlso clear the document information and XMP metadata.
outputNamestringtextOutput file name without a path; the extension is added for you.

Scale PDF (scale-pdf)

Resize pages and their content by a percentage.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=scale-pdf

OptionTypeValuesDefaultUsed whenDescription
percentnumber10 to 400100New size as a percentage of the current size.
pagesstringtextPages to scale; blank scales every page. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
outputNamestringtextOutput file name without a path; the extension is added for you.

Sign PDF (sign-pdf)

Add a visible signature to a PDF.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Fonts: see /docs/fonts.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=sign-pdf

Asset file signatureImage (a stored document version {documentId, versionId}; .avif .jpeg .jpg .png .tif .tiff .webp; up to 20 MiB): required when signatureType = image.

Asset file stampImage (a stored document version {documentId, versionId}; .avif .jpeg .jpg .png .tif .tiff .webp; up to 20 MiB): optional.

Asset file certificateFile (sent inline as base64 {content, fileName}; .p12 .pfx; up to 2 MiB): required when signatureType = digital.

OptionTypeValuesDefaultUsed whenDescription
signatureTypeenumtype, image, digitalimageTyped name, signature image, or certificate-backed digital signature.
namestringtextsignatureType = type or digitalTyped signer name (required for type, up to 120 characters) or the digital appearance label.
fontFamilystringtextsignatureType = type or digitalFont of the typed signature and text fields: blank keeps Helvetica Oblique; gf:<id> embeds a family of the font catalog (/docs/fonts: every Google Fonts family, all scripts, shaped for Devanagari, Bengali, Tamil, Telugu and Arabic); u:<id> one of your uploaded fonts (the id from your fonts in the Document editor; another person's or a deleted font is refused).
pagenumber1 to 1000001One-based page number for the visible signature.
positionenumtop-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center, bottom-right, diagonalbottom-rightVisible signature placement.
positionModeenumpreset, custompresetUse a placement preset or percentage coordinates.
xPercentnumber0 to 10050positionMode = customHorizontal center for custom placement.
yPercentnumber0 to 10050positionMode = customVertical center for custom placement.
rotationnumber-360 to 360 degrees0Turn of the visible signature in degrees, counter-clockwise, from -360 to 360 (decimals allowed). It sits at its spot, and stays whole on the page, by the box it covers once turned.
scalenumber0.1 to 41Visible signature scale multiplier.
fieldsarraytextOptional visible fields, up to 80: each a date, name, initials, custom-text, stamp or company-stamp box placed by its centre and size in percentages of the page.
dateFormatenumDD/MM/YYYY, MM/DD/YYYY, YYYY-MM-DD, D MMM YYYYD MMM YYYYHow a date field without text prints the signing date (UTC).
digitalVisiblebooleantrue, falsetruesignatureType = digitalAdd a visible appearance to the digital signature.
certificatePassphrase (secret)stringtextsignatureType = digitalPassphrase for the PKCS#12 certificate. You can instead send it as a file part named certificatePassphraseFile (up to 512 bytes).
outputNamestringtextOutput file name without a path; the extension is added for you.

Split PDF (split-pdf)

Separate pages into individual files.

Inputs: 1 of application/pdf. Output: One PDF (application/pdf), or a ZIP of PDFs when the split produces several parts (application/zip).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=split-pdf

OptionTypeValuesDefaultUsed whenDescription
modeenumranges, interval, each, smart, size, content, largerangesSplit strategy. ranges: the page groups in ranges. interval: every N pages. each: one PDF per page. smart: at bookmarks, falling back to content breaks. size: parts near targetSize. content: at detected content breaks. large: fixed-size parts for very long documents. ai (and its alias ocr) finds where each document starts and names each part by its document label; it runs in AI mode and needs the AI processing agreement.
ranges (required when used)stringtextmode = rangesPage groups, one output per comma-separated group unless mergeRanges. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last. Required in ranges mode.
mergeRangesbooleantrue, falsemode = rangesMerge the range groups into one PDF instead of one PDF per group. When omitted it is true for a single range and false otherwise.
intervalnumber1 to 50001mode = intervalPages per output.
targetSize (required when used)number1 to 10240mode = sizeTarget size of each output. Required in size mode; the smallest target is 8 KB.
targetUnitenumkb, mbmbmode = sizeThe unit of the target size.
pagesPerFilenumber1 to 25050mode = largePages per output.
maxPagesnumber1 to 50001500mode = largeSafety cap on pages processed.
allowFallbackbooleantrue, falsetruemode = smartFall back to content breaks when the PDF has no usable bookmarks.
outputNamestringtextOutput file name without a path; the extension is added for you.

SVG to PDF (svg-to-pdf)

Convert safe SVG artwork into PDF format.

Inputs: 1 of image/svg+xml, text/xml, application/xml. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=svg-to-pdf

OptionTypeValuesDefaultUsed whenDescription
outputNamestringtextOutput file name without a path; the extension is added for you.

Text to PDF (text-to-pdf)

Convert plain text into a PDF document.

Inputs: 1 of text/plain. Output: PDF document (application/pdf).

Fonts: see /docs/fonts.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=text-to-pdf

OptionTypeValuesDefaultUsed whenDescription
pageSizeenuma4, letter, a3a4Output page size.
orientationenumportrait, landscapeportraitOutput page orientation.
fontSizenumber7 to 2211Body font size in points.
marginnumber18 to 10854Page margin in PDF points.
fontFamilystringtextBody font: blank keeps DejaVu Sans; helvetica, times or courier uses that standard PDF font; gf:<id> uses a family of the font catalog (/docs/fonts: every Google Fonts family, all scripts); u:<id> one of your uploaded fonts; embedded in the PDF.
outputNamestringtextOutput file name without a path; the extension is added for you.

Unlock PDF (unlock-pdf)

Remove password from a file you own.

Inputs: 1 of application/pdf. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=unlock-pdf

OptionTypeValuesDefaultUsed whenDescription
password (secret)stringtextCurrent password; leave blank only for permission-restricted files.
outputNamestringtextOutput file name without a path; the extension is added for you.

Watermark Image (watermark-image)

Apply text or logo marks to an image.

Inputs: 1 of image/jpeg, image/png, image/webp, image/avif, image/tiff. Output: Processed image (same family as input).

Fonts: see /docs/fonts.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=watermark-image

Asset file watermarkImage (a stored document version {documentId, versionId}; .avif .jpeg .jpg .png .tif .tiff .webp; up to 20 MiB): required when mode = image.

OptionTypeValuesDefaultUsed whenDescription
modeenumtext, imagetextText or image watermark.
text (required when used)stringtextmode = textWatermark text, up to 160 characters. Required in text mode.
fontFamilystringtextmode = textText font: blank keeps the bold sans; gf:<id> embeds a family of the font catalog (/docs/fonts: every Google Fonts family, all scripts, shaped for Devanagari, Bengali, Tamil, Telugu and Arabic); u:<id> one of your uploaded fonts (the id from your fonts in the Document editor; another person's or a deleted font is refused) (its bold face when it has one).
opacitynumber1 to 100 %35Opacity from 1 to 100 percent.
positionenumtop-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center, bottom-rightbottom-rightPreset placement, one of nine spots. A custom spot uses positionMode=custom with xPercent and yPercent.
positionModeenumpreset, custompresetUse a preset or explicit percentage coordinates.
xPercentnumber0 to 10050positionMode = customHorizontal centre of the watermark as a percentage of the image width; the watermark is kept inside the image.
yPercentnumber0 to 10050positionMode = customVertical centre of the watermark as a percentage of the image height, from the top; the watermark is kept inside the image.
marginnumber0 to 2000 px20Edge margin in pixels for preset placement.
scalenumber5 to 100 %30mode = imageWidth of an image watermark as a percentage of the image width.
patternenumsingle, tilesingleSingle or tiled watermark.
tileSpacingnumber40 to 1000 px180pattern = tileSpacing between repeated watermarks in pixels.
rotationnumber-180 to 180 degrees0Rotation in degrees, counter-clockwise.
fontSizenumber10 to 240 pxmode = textText size in pixels. When omitted it is a fourteenth of the image width, at least 18.
colorstringtext#101511mode = textText color as a six-digit hex color.
outputFormatenumsame, jpg, png, webp, avif, tiffsameKeep the input format or encode a specific output format.
qualitynumber1 to 100 %85Lossy encoder quality for JPG, WebP, or AVIF output (AVIF defaults to 55).
backgroundstringtext#ffffffSix-digit hex background used when transparent pixels are encoded as JPG.
outputNamestringtextOutput file name without a path; the extension is added for you.

Web page to PDF or image (web-capture)

Capture a web address or pasted HTML as a PDF or a PNG, JPEG or WebP image.

Inputs: 1 of text/html, text/plain, up to 10 MiB. Output: PDF document (application/pdf), or a PNG, JPEG or WebP image, as chosen by output.

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=web-capture

OptionTypeValuesDefaultUsed whenDescription
sourceenumhtml, urlhtmlhtml renders the uploaded HTML with scripts off; url captures a public web address.
urlstringtextsource = urlPublic address to capture. When empty, the input file's text is the address.
outputenumpdf, png, jpeg, webppdfWhat to make: a PDF, or a PNG, JPEG or WebP image.
pageSizeenumA4, Letter, Legal, A3A4output = pdfPDF page size.
orientationenumportrait, landscapeportraitoutput = pdfPDF orientation.
marginenumno-margin, small, bigsmalloutput = pdfPDF margin: no-margin 0, small 0.5 in, big 0.75 in.
fullPagebooleantrue, falsefalseCapture the whole page (one long PDF page, or a full-length image) instead of the first screen.
screenSizeenumdesktop, laptop, tablet, mobiledesktopBrowser window: desktop 1365x768, laptop 1440x900, tablet 834x1112, mobile 390x844.
viewportWidthnumber320 to 2400 pxExact window width; overrides screenSize.
viewportHeightnumber240 to 2400 pxExact window height; overrides screenSize.
delayMsnumber0 to 3000 msWait after the page loads before capturing (an image waits 250 ms when this is omitted).
qualitynumber1 to 100 %86output = jpeg or webpJPEG or WebP quality.
transparentBackgroundbooleantrue, falsefalseoutput = pngKeep a transparent background.
blockAdsbooleantrue, falsefalseoutput = pdfTry to block advertising requests.
removeOverlaysbooleantrue, falsefalseoutput = pdfTry to remove pop-up overlays from a captured web address.
outputNamestringtextOutput file name without a path; the extension is added for you.

Word to PDF (word-to-pdf)

Convert document files to PDF.

Inputs: 1 of application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.oasis.opendocument.text. Output: PDF document (application/pdf).

Generate code with your own settings, or with this tool as one of up to 10 steps: /docs/developer-api/snippet-builder?start=word-to-pdf

OptionTypeValuesDefaultUsed whenDescription
outputNamestringtextOutput file name without a path; the extension is added for you.