The Pages tab in the template editor’s sidebar lists a PDF template’s pages, in the order its generated PDFs have them, with each page’s fields drawn on its thumbnail. Click a page to scroll to it. Point at a page for its buttons.
Changes to the pages are saved with the template, like changes to its fields, and you can undo them. Your PDF itself doesn’t change: DocSpring puts the pages in order when it generates each PDF.
Reorder pages
Section titled “Reorder pages”Drag a page, or use the Move up and Move down buttons beside it. A page’s fields move with it. A page that has moved shows its number in your PDF when you point at it.
Delete and restore pages
Section titled “Delete and restore pages”Delete page beside a page leaves the page out of generated PDFs. Its fields stay on the template, but they’re left out of the template’s fields and its schema, so submissions don’t take data for them. Deleted pages are listed under the pages: Restore puts a page back, with its fields, after the page that comes before it in your PDF.
A template always keeps at least one page.
Add blank pages
Section titled “Add blank pages”Insert blank page after beside a page adds a blank page the size of that page after it. Move it like any other page, and add fields to it as you would on any other page.
Reset the pages
Section titled “Reset the pages”Reset pages, under the pages, puts the PDF’s pages back in their order and restores the deleted ones. Blank pages are removed, except a blank page with fields (and any blank page added before it): those are kept under Deleted pages, so their fields aren’t lost.
Uploading a new PDF resets the pages too.
Fields and field setup
Section titled “Fields and field setup”A field named like a field on a deleted page shares that field’s settings, as two fields with one name always do; the editor says so under the field’s name. Set up fields reads the PDF’s pages that aren’t deleted: it leaves the fields on deleted pages and on blank pages as they are, also when it replaces the template’s fields.
Choose pages when you create a template
Section titled “Choose pages when you create a template”To leave pages out or change their order before the template is created, tick Select and reorder pages on the New template page before you upload the PDF. Field detection skips the pages you leave out, and isn’t charged for them.
With the API
Section titled “With the API”A template’s pages are its page_list. Read it from the template, and set it with
Update Template: pages lists the page numbers generated PDFs
have, in order, where 1 to source_pages are the PDF’s pages and the numbers after them are the blank_pages. Field
page numbers count the pages generated PDFs have.
{ "page_list": { "source_pages": 3, "pages": [3, 4, 1], "blank_pages": [{ "width": 612, "height": 792 }] }}This template’s PDFs start with the PDF’s third page, then a blank US Letter page, then the first page. The PDF’s
second page is deleted. Set page_list to null to put the PDF’s pages back in order and remove the blank pages; a
blank page with fields can’t be removed, only left out of pages. A blank page is known by its place in blank_pages:
change one’s size and the fields on the blank pages after it stay where they were on their pages.
A few things still go by the PDF’s own pages:
document.page_countanddocument.page_dimensionsdescribe the uploaded PDF, in its own order.- A combined PDF that includes a template itself (a
templatesource, not a submission) gets the template’s PDF with its own pages, in their order. - API v1’s
addFieldsToTemplatetakes the PDF’s page numbers, and can’t add fields to blank pages. Use API v2’s field operations to work with the pages generated PDFs have.