Repository navigation
Commit 4746cfb
committed
Update to version 4.5.0 on 2026-12-04
- New: the PDF tools, which run on files you send, with no template. `split_pdf`, `extract_pages`,
`rotate_pages`, `encrypt_pdf`, `decrypt_pdf`, `watermark_pdf`, `add_page_numbers`, `compress_pdf`, `flatten_pdf`,
`pdf_to_images`, `images_to_pdf` and `pdf_to_text` each start a job on a PDF (or images) you give as a URL, an upload,
base64 or a file already in DocSpring. `html_to_pdf` and `markdown_to_pdf` convert HTML or Markdown you send to a PDF.
Each returns a job with links to the files it made: `get_job` reads it again, `list_jobs` lists your jobs and
`delete_job` deletes one and its files. See [PDF Tools API](https://docspring.com/docs/api-guide/pdf-tools/).
- New: `Template` has `page_list`, a PDF template's pages in the order its generated PDFs have them (`TemplatePageList`: `source_pages`, the `pages` in order, and the `blank_pages` added), which update_template takes too. Null puts the PDF's pages back in order. Fields' `page` numbers and get_template_page_images follow it, and a blank page's `PageImage` has a null `download_url`.
- New: support for AI agents that use DocSpring. `ask_support_help` puts a question to DocSpring's AI help, which
answers from the documentation (`get_support_help` gets the answer again). `send_support_feedback` tells us what got
in the way, and nobody replies to it. `open_support_ticket` opens a ticket that a person on our team answers, with
`list_support_tickets`, `get_support_ticket` and `reply_to_support_ticket` to follow it, and each ticket's
`watch_url` says when it changes. Every API token can call them, whatever its scopes. See
[Support for AI agents](https://docspring.com/docs/api-guide/support-for-ai-agents/).
- New: `Field` has `comb_fill_from_right`, `comb_pad_with_zeros` and `print_digits_only`, which set how a comb
field's value fills its boxes: from the right, padded with zeros, or with only its digits (so `123-45-6789` fills an
SSN's 9 boxes). `FieldOverride` takes `comb_fill_from_right` and `comb_pad_with_zeros`.
- New: `Field` has `number_part`, which part of a number the field prints: `all`, `whole` or `decimals`, so one amount
fills a dollars field and a cents field. `FieldOverride` takes it too.
- New: `Field` has `option_labels`, the label forms show for each of its options, keyed by the option, such as
`{"married_filing_jointly": "Married filing jointly"}` (the data keeps the option), and `print_option_labels`, which
prints the chosen option's label on the PDF instead of the option. `FieldOverride` takes both, and `PredefinedField`
takes `option_labels`.
- New: `Template` has `markdown`, whether an HTML template's body is written in Markdown (GitHub Flavored Markdown,
which can also hold HTML), which create_template and update_template take too.
- New: `Template` has `html_engine`, what renders an HTML template's PDFs: `standard` (DocSpring's own renderer, much
faster) or `chromium` (headless Chrome, which runs JavaScript), which create_template and update_template take too.
Other values are refused.
- New: `Template` has `form_sections_in_order`, whether a web form with sections makes people fill them out in order, which create_template and update_template take too.
- New: `Template` has `continue_before_optional_fields`, whether visual forms and signature requests show Continue
next to Next as soon as the required fields are filled in (on by default), which create_template and update_template take too.
`allow_skipping_optional_fields` is now only for pages on Visual Forms JS 2.16.0 to 2.23.0.
- New: signature requests on HTML templates, Word templates and page designs. DocSpring makes the document when you
create the signature requests, and signers fill in its form fields. See [how they
work](https://docspring.com/docs/forms/signature-requests/#html-templates-word-templates-and-page-designs).
- Changed: a signature request's `fields` (`SignatureRequestInput`) is optional. A signature request with a `role` gets
the fields the template gives that role, and a submission's only signature request can leave out both: it gets every
field without a role that `data` doesn't fill in.
- New: `Template` has `signer_roles`, the people who sign its submissions (`TemplateSignerRole`: an `id`, a `key`, a
`name`, and a `name_expression` and an `email_expression` for a signature request that doesn't give a name or email
address), and `signature_request_cc`, who gets a copy of the completed document. create_template and update_template
take them too.
- New: a field has `signer_role`, the key of the signer role that fills it in or signs it, or `sender` for a field that
`data` fills in. add_template_fields and update_template_fields take it too.
- New: create_template, upload_template, update_template, update_template_document and upload_template_document take
`sync_fields` (default true): an HTML template's code, a Word template's document or a page design's layout adds a
field for each value it reads for the first time. A Word template takes it with its document (update_template_document
and upload_template_document), not update_template. upload_template and upload_template_document take it before the
idempotency key, so a call that passes the key by position passes `sync_fields` first.
- New: `Template` has `form_sections`, the web form's sections in order (`TemplateFormSection`: an `id`, a `title`, a
`description` and the `field_ids` in it), which update_template takes too. Setting them replaces all of the sections.
- New: `Template` has `success_title`, `success_message` and `show_fill_again_button`, what the web form shows once
it's submitted, which create_template and update_template take too.
- New: create_template and upload_template take `include_office_use_fields`: with `detect_fields`, whether AI field
setup keeps the fields that only the office receiving the form fills in, such as a "For office use only" box. It
leaves them out by default (your account's template settings).
- Changed: the request validator refuses a `filename` that's blank or only whitespace (create_template,
update_template_document), and an empty `field_groups` list in update_template.
- New: a 409 `idempotency_key_in_use` error names what the first request with the key did: the email action
(`email_action_id`) or email domain (`email_domain_id`) it created, or the template whose fields it changed or whose
version it published (`template_id`).
- New: `Template` has `override_account_expiry`, which create_template and update_template take too: whether the
template's own expiry (`expire_submissions`, `expire_after` and `expiration_interval`) decides when its submissions
are deleted, or your account's data retention settings do. Creating a template with `expire_submissions` turns it on.
- New: `SubmissionFiles` has `signing_manifest`, the audit data behind a signed submission's audit trail, as JSON.
- Changed: without `expires_in`, a submission follows its template's expiry, or your account's data retention settings
when the template doesn't override them, and a combined PDF follows your account's settings.1 parent 1515853 commit 4746cfb
331 files changed
Lines changed: 47780 additions & 4144 deletions
File tree
- .github/workflows
- .openapi-generator
- api
- docs
- src
- main
- java/com/docspring
- resources/com/docspring
- test/java/com/docspring
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
49 | 64 | | |
50 | 65 | | |
51 | 66 | | |
| |||
57 | 72 | | |
58 | 73 | | |
59 | 74 | | |
60 | | - | |
| 75 | + | |
61 | 76 | | |
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
65 | | - | |
66 | | - | |
| 80 | + | |
| 81 | + | |
67 | 82 | | |
68 | | - | |
| 83 | + | |
69 | 84 | | |
70 | 85 | | |
71 | 86 | | |
| |||
0 commit comments