Skip to content

Commit 4746cfb

Browse files
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/release.yml‎

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
#
44
# Builds the package on every push and pull request. A v* tag (pushed by the monorepo's api_clients/scripts/release)
55
# also signs it and publishes it to Maven Central, in the release environment, and waits until Maven Central serves
6-
# it. Maven Central has no trusted publishing: the release environment's secrets hold a Central Portal user token
6+
# it. scripts/release stops waiting once the publish job has uploaded it: GitHub emails a failure of the verify job.
7+
# Maven Central has no trusted publishing: the release environment's secrets hold a Central Portal user token
78
# (MAVEN_CENTRAL_USERNAME, MAVEN_CENTRAL_PASSWORD) and the signing key (MAVEN_GPG_PRIVATE_KEY, MAVEN_GPG_PASSPHRASE).
8-
# OpenAPI Generator's maven.yml runs the package's tests.
99
name: Release
1010

1111
on:
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2525
with:
2626
persist-credentials: false
27-
- uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
27+
- uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0
2828
with:
2929
distribution: temurin
3030
java-version: '17'
@@ -46,6 +46,21 @@ jobs:
4646
exit 1
4747
fi
4848
- run: mvn -B -ntp -DskipTests -DskipITs package
49+
- name: Install shiplist
50+
run: |
51+
curl -fsSL -o "$RUNNER_TEMP/shiplist.tar.gz" https://github.com/DocSpring/shiplist/releases/download/v0.1.0/shiplist-v0.1.0-x86_64-unknown-linux-musl.tar.gz
52+
echo "800f0f149aefe68df1302d50a268f5f13fc9af6ba530d48fb49da8df76bbf5ac $RUNNER_TEMP/shiplist.tar.gz" | sha256sum -c -
53+
tar -xzf "$RUNNER_TEMP/shiplist.tar.gz" -C "$RUNNER_TEMP" --strip-components=1
54+
# The publish job builds the jars again, from the same commit, so they hold the same files. The javadoc jar is
55+
# Maven's HTML.
56+
- name: Check the jars hold only the files .shiplist.yml keeps
57+
run: |
58+
for jar in target/DocSpring-*.jar; do
59+
case "$jar" in
60+
*-javadoc.jar) ;;
61+
*) "$RUNNER_TEMP/shiplist" verify package --archive "$jar" ;;
62+
esac
63+
done
4964
5065
publish:
5166
needs: build
@@ -57,15 +72,15 @@ jobs:
5772
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5873
with:
5974
persist-credentials: false
60-
- uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
75+
- uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0
6176
with:
6277
distribution: temurin
6378
java-version: '17'
6479
server-id: central
65-
server-username: MAVEN_CENTRAL_USERNAME
66-
server-password: MAVEN_CENTRAL_PASSWORD
80+
server-username-env-var: MAVEN_CENTRAL_USERNAME
81+
server-password-env-var: MAVEN_CENTRAL_PASSWORD
6782
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
68-
gpg-passphrase: MAVEN_GPG_PASSPHRASE
83+
gpg-passphrase-env-var: MAVEN_GPG_PASSPHRASE
6984
# The runner's Maven is 3.10, which puts maven-metadata-local.xml and _remote.repositories in the bundle the
7085
# Central publishing plugin (0.10.0) uploads, and Central rejects it. Maven 3.9 doesn't.
7186
- name: Install Maven 3.9.16

0 commit comments

Comments
 (0)