Skip to content

Commit 43477a4

Browse files
committed
Update to version 4.8.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`.
1 parent 3a6e6c4 commit 43477a4

182 files changed

Lines changed: 20995 additions & 4980 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.

‎.openapi-generator/FILES‎

Lines changed: 135 additions & 0 deletions
Large diffs are not rendered by default.

‎CHANGELOG.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
### 4.8.0 [December 4, 2026]
2+
3+
- New: the PDF tools, which run on files you send, with no template. `split_pdf`, `extract_pages`,
4+
`rotate_pages`, `encrypt_pdf`, `decrypt_pdf`, `watermark_pdf`, `add_page_numbers`, `compress_pdf`, `flatten_pdf`,
5+
`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,
6+
base64 or a file already in DocSpring. `html_to_pdf` and `markdown_to_pdf` convert HTML or Markdown you send to a PDF.
7+
Each returns a job with links to the files it made: `get_job` reads it again, `list_jobs` lists your jobs and
8+
`delete_job` deletes one and its files. See [PDF Tools API](https://docspring.com/docs/api-guide/pdf-tools/).
9+
- 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`.
10+
111
### 4.7.0 [November 18, 2026]
212

313
- New: support for AI agents that use DocSpring. `ask_support_help` puts a question to DocSpring's AI help, which
@@ -24,6 +34,11 @@
2434
- New: `SubmissionFiles` has `signing_manifest`, the audit data behind a signed submission's audit trail, as JSON.
2535
- Changed: without `expires_in`, a submission follows its template's expiry, or your account's data retention settings
2636
when the template doesn't override them, and a combined PDF follows your account's settings.
37+
- New: `Template` has `markdown`, whether an HTML template's body is written in Markdown (GitHub Flavored Markdown,
38+
which can also hold HTML), which create_template and update_template take too.
39+
- New: `Template` has `html_engine`, what renders an HTML template's PDFs: `standard` (DocSpring's own renderer, much
40+
faster) or `chromium` (headless Chrome, which runs JavaScript), which create_template and update_template take too.
41+
Other values are refused.
2742
- 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.
2843
- New: `Template` has `continue_before_optional_fields`, whether visual forms and signature requests show Continue
2944
next to Next as soon as the required fields are filled in (on by default), which create_template and update_template take too.

‎README.md‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pull requests are welcome.
1313
Outside Python code, the [DocSpring CLI](https://docspring.com/docs/cli/) calls the same API from a terminal or a
1414
shell script, and the [MCP server](https://docspring.com/docs/mcp/) connects AI assistants to your account.
1515

16-
Version 4.7.0. Requires Python >=3.10.
16+
Version 4.8.0. Requires Python >=3.10.
1717

1818
## Install and configure
1919

@@ -84,8 +84,10 @@ Python code for every method.
8484

8585
| Method | Description |
8686
| ------ | ----------- |
87+
| [`add_page_numbers`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#add_page_numbers) | Add page numbers |
8788
| [`add_template_fields`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#add_template_fields) | Add fields to a template |
8889
| [`ask_support_help`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#ask_support_help) | Ask for help |
90+
| [`compress_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#compress_pdf) | Compress a PDF |
8991
| [`copy_template`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#copy_template) | Copy a template |
9092
| [`create_account_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#create_account_email_action) | Create an account email action |
9193
| [`create_combined_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#create_combined_pdf) | Combine PDFs |
@@ -100,16 +102,21 @@ Python code for every method.
100102
| [`create_template`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#create_template) | Create a template |
101103
| [`create_template_preview`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#create_template_preview) | Preview a template with data |
102104
| [`create_webhook`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#create_webhook) | Create a webhook |
105+
| [`decrypt_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#decrypt_pdf) | Decrypt a PDF |
103106
| [`delete_account_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_account_email_action) | Delete an account email action |
104107
| [`delete_custom_file`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_custom_file) | Delete a custom file |
105108
| [`delete_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_email_action) | Delete an email action |
106109
| [`delete_email_action_customization`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_email_action_customization) | Reset an account email action's customization |
107110
| [`delete_email_domain`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_email_domain) | Remove an email domain |
108111
| [`delete_folder`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_folder) | Delete a folder |
112+
| [`delete_job`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_job) | Delete a job |
109113
| [`delete_template`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_template) | Delete a template |
110114
| [`delete_webhook`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_webhook) | Delete a webhook |
115+
| [`encrypt_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#encrypt_pdf) | Encrypt a PDF |
111116
| [`expire_combined_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#expire_combined_pdf) | Expire a combined PDF |
112117
| [`expire_submission`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#expire_submission) | Expire a submission |
118+
| [`extract_pages`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#extract_pages) | Extract pages from a PDF |
119+
| [`flatten_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#flatten_pdf) | Flatten a PDF |
113120
| [`generate_submission_files`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#generate_submission_files) | Generate more files |
114121
| [`generate_submission_preview`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#generate_submission_preview) | Generate a preview PDF |
115122
| [`get_account_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_account_email_action) | Get an account email action |
@@ -118,6 +125,7 @@ Python code for every method.
118125
| [`get_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_email_action) | Get an email action |
119126
| [`get_email_domain`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_email_domain) | Get an email domain |
120127
| [`get_folder`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_folder) | Get a folder |
128+
| [`get_job`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_job) | Get a job |
121129
| [`get_presign_url`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_presign_url) | Get a presigned URL to upload a file |
122130
| [`get_signature_request`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_signature_request) | Get a signature request |
123131
| [`get_submission`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_submission) | Get a submission |
@@ -131,30 +139,38 @@ Python code for every method.
131139
| [`get_template_preview`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_template_preview) | Get a template preview |
132140
| [`get_template_schema`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_template_schema) | Get the JSON Schema of a template's submission data |
133141
| [`get_webhook`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_webhook) | Get a webhook |
142+
| [`html_to_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#html_to_pdf) | Convert HTML to a PDF |
143+
| [`images_to_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#images_to_pdf) | Convert images to a PDF |
134144
| [`list_account_email_actions`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_account_email_actions) | List account email actions |
135145
| [`list_combined_pdfs`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_combined_pdfs) | List combined PDFs |
136146
| [`list_custom_files`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_custom_files) | List custom files |
137147
| [`list_email_actions`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_email_actions) | List email actions |
138148
| [`list_email_domains`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_email_domains) | List email domains |
139149
| [`list_folders`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_folders) | List folders |
150+
| [`list_jobs`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_jobs) | List jobs |
140151
| [`list_submissions`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_submissions) | List submissions |
141152
| [`list_support_tickets`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_support_tickets) | List support tickets |
142153
| [`list_template_fields`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_template_fields) | List a template's fields |
143154
| [`list_template_submissions`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_template_submissions) | List a template's submissions |
144155
| [`list_templates`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_templates) | List templates |
145156
| [`list_webhooks`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_webhooks) | List webhooks |
157+
| [`markdown_to_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#markdown_to_pdf) | Convert Markdown to a PDF |
146158
| [`move_folder`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#move_folder) | Move a folder |
147159
| [`move_template`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#move_template) | Move a template to a folder |
148160
| [`open_support_ticket`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#open_support_ticket) | Open a support ticket |
161+
| [`pdf_to_images`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#pdf_to_images) | Render PDF pages as images |
162+
| [`pdf_to_text`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#pdf_to_text) | Extract text from a PDF |
149163
| [`publish_template_version`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#publish_template_version) | Publish a template version |
150164
| [`remove_template_fields`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#remove_template_fields) | Remove fields from a template |
151165
| [`rename_folder`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#rename_folder) | Rename a folder |
152166
| [`reorder_template_fields`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#reorder_template_fields) | Reorder a template's fields |
153167
| [`reply_to_support_ticket`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#reply_to_support_ticket) | Reply to a support ticket |
154168
| [`restore_template_version`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#restore_template_version) | Restore a template version |
169+
| [`rotate_pages`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#rotate_pages) | Rotate pages |
155170
| [`send_account_email_action_test_email`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#send_account_email_action_test_email) | Send a test email for an account email action |
156171
| [`send_email_action_test_email`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#send_email_action_test_email) | Send a test email |
157172
| [`send_support_feedback`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#send_support_feedback) | Send feedback |
173+
| [`split_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#split_pdf) | Split a PDF |
158174
| [`test_authentication`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#test_authentication) | Test authentication |
159175
| [`update_account_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#update_account_email_action) | Update an account email action |
160176
| [`update_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#update_email_action) | Update an email action |
@@ -168,6 +184,7 @@ Python code for every method.
168184
| [`upload_template_document`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#upload_template_document) | Replace a template's document with an uploaded file |
169185
| [`validate_submission`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#validate_submission) | Check a submission without creating it |
170186
| [`verify_email_domain`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#verify_email_domain) | Verify an email domain |
187+
| [`watermark_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#watermark_pdf) | Watermark a PDF |
171188

172189
## Errors
173190

‎docs/AddPageNumbersRequest.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# AddPageNumbersRequest
2+
3+
The PDF, and where to put the page numbers.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**input** | [**JobSourceInput**](JobSourceInput.md) | The file the job reads. The job shows it as `inputs[0]`. |
10+
**metadata** | **Dict[str, object]** | Your own data about the job, such as an ID from your app. Up to 50 keys. | [optional]
11+
**expires_in** | **int** | Seconds after the job finishes until its files are deleted, up to 10 years (315360000), sooner or later than the account's expiry setting. Defaults to the account's expiry setting for the PDF tools, which keeps them until you delete the job when it's off. A job that fails is kept for at least 48 hours. | [optional]
12+
**text** | **str** | The label, where `{page}` is the page's number and `{total}` the last number. Default `Page {page} of {total}`. Latin letters, numbers and punctuation (the Windows-1252 characters). | [optional]
13+
**position** | [**PageNumberPosition**](PageNumberPosition.md) | Where the number goes. Default `bottom_center`. | [optional]
14+
**font_size** | **float** | The text's size in points. Default 10. | [optional]
15+
**start_at** | **int** | The first numbered page's number. Default 1. | [optional]
16+
**pages** | **str** | The pages to number, such as `2-z` to skip a cover page. Default every page. | [optional]
17+
18+
## Example
19+
20+
```python
21+
from docspring.models.add_page_numbers_request import AddPageNumbersRequest
22+
23+
# TODO update the JSON string below
24+
json = "{}"
25+
# create an instance of AddPageNumbersRequest from a JSON string
26+
add_page_numbers_request_instance = AddPageNumbersRequest.from_json(json)
27+
# print the JSON string representation of the object
28+
print(AddPageNumbersRequest.to_json())
29+
30+
# convert the object into a dict
31+
add_page_numbers_request_dict = add_page_numbers_request_instance.to_dict()
32+
# create an instance of AddPageNumbersRequest from a dict
33+
add_page_numbers_request_from_dict = AddPageNumbersRequest.from_dict(add_page_numbers_request_dict)
34+
```
35+
[[Back to Model list]](../README.md#methods) [[Back to API list]](../README.md#methods) [[Back to README]](../README.md)
36+
37+

‎docs/AskSupportHelpRequest.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A question about DocSpring. Never include secrets, credentials or your users' da
66

77
Name | Type | Description | Notes
88
------------ | ------------- | ------------- | -------------
9-
**question** | **str** | What you want to know, in a sentence or two. For a follow-up question, include what was asked and answered before that matters to it: each request is answered by itself. |
9+
**question** | **str** | What you want to know, in a sentence or two. For a follow-up, send the questions and answers so far as `conversation`. |
1010
**tool** | **str** | The API operation, MCP tool or CLI command involved, if any. | [optional]
1111
**error** | **str** | The exact error text, if any. | [optional]
1212
**conversation** | [**List[SupportHelpTurn]**](SupportHelpTurn.md) | For a chat: the questions and answers so far, oldest first, when `question` follows on from them. At most 40 turns: start a new conversation after that. | [optional]

‎docs/Base64JobSource.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Base64JobSource
2+
3+
The file itself, in base64.
4+
5+
## Properties
6+
7+
Name | Type | Description | Notes
8+
------------ | ------------- | ------------- | -------------
9+
**type** | **str** | Must be `base64`. | [default to 'base64']
10+
**data** | **str** | For a `base64` input, the file's bytes in base64. Up to 7 MB once decoded: upload bigger files (GET /uploads/presign). A job never returns it. |
11+
**filename** | **str** | The file's name. The job names the files it makes after it (contract.pdf makes contract-1.pdf). Default the name of the custom file, job file or URL path. | [optional]
12+
13+
## Example
14+
15+
```python
16+
from docspring.models.base64_job_source import Base64JobSource
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of Base64JobSource from a JSON string
21+
base64_job_source_instance = Base64JobSource.from_json(json)
22+
# print the JSON string representation of the object
23+
print(Base64JobSource.to_json())
24+
25+
# convert the object into a dict
26+
base64_job_source_dict = base64_job_source_instance.to_dict()
27+
# create an instance of Base64JobSource from a dict
28+
base64_job_source_from_dict = Base64JobSource.from_dict(base64_job_source_dict)
29+
```
30+
[[Back to Model list]](../README.md#methods) [[Back to API list]](../README.md#methods) [[Back to README]](../README.md)
31+
32+

0 commit comments

Comments
 (0)