DocView Capture by DocView.AI3 Nov 2026 10:51

Tidy pages with a script — document capture template

After the Image enhancement step has found the blank pages, an ArrangePages event script deletes them and turns pages that were scanned sideways (landscape) upright. The same event can cut a cheque off a letter, copy a page into two documents or group pages by any rule you can write in JavaScript.

Try it

Create a Batch Setup from this template (Batch Setups › New Batch Setup, tab System features), and download its sample documents from the template's card (Download samples). Then: Import mixed-pages.pdf (a letter, a blank page and a page lying on its side). Open the batch: the blank page is gone and the landscape page stands upright. The batch history says what the script did.

At a glance

Region Global
Industry System features
Document types General document
Workflow Scan → Image enhancement → OCR, separation & classification → Extraction & validation → Index / Validate → PDF generation & export
Straight-through processing No — every batch is checked on screen
Separation each file is one document
Output searchable PDF with XML data
Dates read as dd/MM/yyyy, d/M/yyyy, dd.MM.yyyy

Use this template

  1. Go to Batch Setups and choose New Batch Setup.
  2. Filter by Global or search for "Tidy pages with a script", select it and choose Next.
  3. Name the Batch Setup, choose the export folder and create it.
  4. Try it with a few of your own documents on the Test tab, adjust fields and rules, then publish it — see Test a Batch Setup and Versions and publishing.

Document types and fields

General document

Used for documents that match no other type; operators can also choose it in Classification.

Field Type Required Found by Checks
Sender Text label "From", "Sender", "Yours sincerely"
Letter date Date label "Date", "Dated" Not in the future
Reference Text label "Our ref", "Your ref", "Reference"
Route to Choice entered by the operator one of: Accounts, Sales, Customer service, Legal, Operations, Other

Adapt it to your documents

All templates

Still stuck? support@docview.ai · +44 7886 864921

Made with DocView Capture by DocView.AI · www.docview.ai