Turn a Markdown document into a PDF and return the PDF. Each successful render counts as one document. Re-sending the same document with the same idempotency key returns the same PDF and is not counted again.
輸入參數pagesignwidthfooterformatheaderheightmarginoutputfeaturesfilenamelanguage另有 6 個
How many of the account's documents for the period are used: the period's dates, the number of documents included, the number used, the plan's limits, and the split by API key. Pass period to read an earlier period.
輸入參數period
The full reference of the template document: page, paragraphs, styles, fields and formats, formulas and their functions, repeated blocks, tables, bands, placed boxes, graphics and barcode types, the grid, fonts and limits, and the starter templates. Read it before you write or change a template body.
無需輸入參數。
The account's saved templates: the id, the name, the revision, and the fields each one reads (data paths, CSV table sources and JSON list sources), and how many templates the plan keeps.
無需輸入參數。
One template: its editor document (body), its revision and the fields it reads. Change the body and send it to update_template with this revision. get_template_format describes the body.
輸入參數template必填
Save a new template. Send exactly one of body (an editor document), markdown, html or starter. In Markdown and HTML, write {{path}} where a value from the data goes; headings, paragraphs, lists, quotes, code and tables become editable blocks, and images and scripts are left out (left lists them). A starter answers its sample data too, for preview_template. Answers the id, the revision and the fields.
輸入參數bodyhtmlname必填startermarkdown
Change a template. Send base_revision, the revision you read; a newer revision answers template_version_conflict. What you leave out stays as it was: send body, markdown or html to replace the document, name to rename it.
輸入參數bodyhtmlnamemarkdowntemplate必填base_revision必填
Delete a template with its images. Renders that name it answer not_found at once. This cannot be undone.
輸入參數template必填
Pictures of a saved template's pages filled with data, to check how it looks before render_template. It does not count as a document and nothing is stored. It uses your plan's hourly preview budget, which the editor's previews share. Answers JPEG pictures of up to 4 pages and a text block with the page count and the problems: data that does not fill the template, text that does not fit its box, a box drawn over text and a box past the page edge, each with its path and page. A missing field shows as ‹path› in the picture; a graphic that does not draw shows as an empty frame. Ask for later pages with first_page. Look at each picture, change the body with update_template, and preview again until it is right.
輸入參數csvdpidatatemplate必填first_pagepage_count
Fill a saved template with data and return the PDF. Each successful render counts as one document. Re-sending the same data with the same idempotency key returns the same PDF and is not counted again. Text that does not fit its box, a box drawn over text and a box past the page edge come back as warnings; the PDF is made all the same.
輸入參數csvdatatemplate必填idempotency_key