You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 43477a4
Browse filesBrowse the repository at this point in the historyBrowse files
- 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`.
`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
+
1
11
### 4.7.0 [November 18, 2026]
2
12
3
13
- New: support for AI agents that use DocSpring. `ask_support_help` puts a question to DocSpring's AI help, which
@@ -24,6 +34,11 @@
24
34
- New: `SubmissionFiles` has `signing_manifest`, the audit data behind a signed submission's audit trail, as JSON.
25
35
- Changed: without `expires_in`, a submission follows its template's expiry, or your account's data retention settings
26
36
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.
27
42
- 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.
28
43
- New: `Template` has `continue_before_optional_fields`, whether visual forms and signature requests show Continue
29
44
next to Next as soon as the required fields are filled in (on by default), which create_template and update_template take too.
@@ -100,16 +102,21 @@ Python code for every method.
100
102
|[`create_template`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#create_template)| Create a template |
101
103
|[`create_template_preview`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#create_template_preview)| Preview a template with data |
102
104
|[`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 |
103
106
|[`delete_account_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_account_email_action)| Delete an account email action |
104
107
|[`delete_custom_file`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_custom_file)| Delete a custom file |
105
108
|[`delete_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_email_action)| Delete an email action |
106
109
|[`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 |
107
110
|[`delete_email_domain`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_email_domain)| Remove an email domain |
108
111
|[`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 |
109
113
|[`delete_template`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#delete_template)| Delete a template |
110
114
|[`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 |
111
116
|[`expire_combined_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#expire_combined_pdf)| Expire a combined PDF |
112
117
|[`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 |
113
120
|[`generate_submission_files`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#generate_submission_files)| Generate more files |
114
121
|[`generate_submission_preview`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#generate_submission_preview)| Generate a preview PDF |
115
122
|[`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.
118
125
|[`get_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_email_action)| Get an email action |
119
126
|[`get_email_domain`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_email_domain)| Get an email domain |
120
127
|[`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 |
121
129
|[`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 |
122
130
|[`get_signature_request`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_signature_request)| Get a signature request |
123
131
|[`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.
131
139
|[`get_template_preview`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#get_template_preview)| Get a template preview |
132
140
|[`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 |
133
141
|[`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 |
134
144
|[`list_account_email_actions`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_account_email_actions)| List account email actions |
135
145
|[`list_combined_pdfs`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_combined_pdfs)| List combined PDFs |
136
146
|[`list_custom_files`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_custom_files)| List custom files |
137
147
|[`list_email_actions`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_email_actions)| List email actions |
138
148
|[`list_email_domains`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_email_domains)| List email domains |
139
149
|[`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 |
140
151
|[`list_submissions`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_submissions)| List submissions |
141
152
|[`list_support_tickets`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_support_tickets)| List support tickets |
142
153
|[`list_template_fields`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_template_fields)| List a template's fields |
143
154
|[`list_template_submissions`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_template_submissions)| List a template's submissions |
144
155
|[`list_templates`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#list_templates)| List templates |
145
156
|[`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 |
146
158
|[`move_folder`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#move_folder)| Move a folder |
147
159
|[`move_template`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#move_template)| Move a template to a folder |
148
160
|[`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 |
149
163
|[`publish_template_version`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#publish_template_version)| Publish a template version |
150
164
|[`remove_template_fields`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#remove_template_fields)| Remove fields from a template |
151
165
|[`rename_folder`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#rename_folder)| Rename a folder |
152
166
|[`reorder_template_fields`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#reorder_template_fields)| Reorder a template's fields |
153
167
|[`reply_to_support_ticket`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#reply_to_support_ticket)| Reply to a support ticket |
154
168
|[`restore_template_version`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#restore_template_version)| Restore a template version |
|[`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 |
156
171
|[`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 |
|[`split_pdf`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#split_pdf)| Split a PDF |
158
174
|[`test_authentication`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#test_authentication)| Test authentication |
159
175
|[`update_account_email_action`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#update_account_email_action)| Update an account email action |
160
176
|[`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.
168
184
|[`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 |
169
185
|[`validate_submission`](https://github.com/DocSpring/docspring-python/blob/main/docs/Client.md#validate_submission)| Check a submission without creating it |
170
186
|[`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 |
**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
**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`. |
10
10
**tool** | **str** | The API operation, MCP tool or CLI command involved, if any. | [optional]
11
11
**error** | **str** | The exact error text, if any. | [optional]
12
12
**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]
**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
0 commit comments