Document Preparation

The Document Preparation tool lets you preprocess PDFs and images before uploading them. Split multipage documents, resize images, adjust contrast, remove duplicates, and more — all through pipelines you can save and reuse.

Purpose

When working with scanned documents, raw images are rarely ready for direct use. Pages may be tilted, oversized, or bundled into a single PDF that needs splitting. Document Preparation solves this by providing a pipeline of image operations you chain together and run in one click.

  • Standardize scanned pages to consistent sizes and orientations
  • Clean up images with deskew, contrast adjustment, and grayscale conversion
  • Split multipage PDFs into individual images
  • Pack multiple pages into composite images for review
  • Remove unwanted pages or duplicate scans
  • Mask sensitive regions before sharing

Key Concepts

Saved pipelines

A saved pipeline is a named list of processing steps. Create it once, then reuse it whenever you have similar documents. Each pipeline has a name, an optional description, and an ordered list of steps.

Steps

Each step performs one operation (e.g., resize, rotate, crop). Steps run in order — the output of one step becomes the input of the next. You can enable or disable individual steps without removing them.

Runs

A run is a single execution of a pipeline. It tracks the input files, output files, execution time, status, and a detailed log of each step. A run comes either from a saved pipeline or from Quick Process.


Quick Process (One-Time)

  1. Navigate to Doc Prep in the sidebar
  2. On the Quick Process tab, click Start
  3. Add processing steps using Add Step
  4. Upload PDF or image files via drag-and-drop or the file browser
  5. Click Execute to process
  6. Download the results when complete

Quick Process is ideal for one-off tasks where you don't need to save the pipeline for later.


Saving a Pipeline

  1. Navigate to Doc Prep → New Pipeline
  2. Enter a name and description
  3. Build the pipeline by adding steps in order
  4. Configure each step's parameters (e.g., DPI for PDF conversion, max dimensions for resize)
  5. Click Save Pipeline

Running a Saved Pipeline

  1. On the Saved Pipelines tab, click Run next to the pipeline
  2. Upload files in the Execute Pipeline section
  3. Optionally enter a run name
  4. Click Execute
  5. Monitor progress in real time
  6. Download output files when complete

Execution logs

The Execution logs tab of the Document Preparation page lists every run, from saved pipelines and from Quick Process, newest first. Each row shows the run name, the pipeline name (or Quick Process), its status, when it started, how many files it produced, how long it took, and a download link once it is done.

Search

Type in the search box and click Apply to find runs by run name or pipeline name. Upper and lower case do not matter, and part of a name is enough.

Period and dates

  • Period — Last hour, Today (since midnight) or Last week (the past 7 days)
  • From and To — only runs started on or between these dates

Clear removes the search, the period and the dates.

Pages

The list shows 10 runs per page. Your search and filters stay in place when you move between pages. The Saved Pipelines tab works the same way: 10 pipelines per page, with a search on the name or description.


Supported Operations

StepDescription
PDF to PNGConvert PDF pages to individual PNG images at a configurable DPI (72–600). Maximum 200 pages per PDF.
ResizeScale images to fit within maximum width and height, with configurable quality (1–100%)
PackCombine multiple pages into single composite images (vertical or horizontal). Configurable pages per group (2–20) and optional gap between pages.
StitchMerge overlapping frames (panorama capture of a long or wide document) into one single image. Alignment is computed from the image content; frames without enough overlap are joined edge-to-edge along the configured pan direction (vertical or horizontal).
RotateRotate images by 90, 180, or 270 degrees
CropTwo modes: trim margins (by pixel amount per edge) or extract a specific region (absolute coordinates)
SplitSplit images along one or more lines. Supports horizontal and vertical splits in a single step — horizontal splits are applied first, then vertical.
GrayscaleConvert color images to grayscale
DeskewStraighten tilted scanned pages (configurable threshold); the page keeps its size
ContrastAdjust brightness and contrast levels independently
Remove PagesDrop specific pages by number
Reorder PagesRearrange page sequence
DeduplicateRemove near-duplicate pages using perceptual hashing. Images are compared via a 16×16 grayscale fingerprint with configurable similarity threshold (50–100%, default 95%).
Mask RegionWhite-fill rectangular areas to hide sensitive content

Use Cases

Preparing Scanned Invoices for Text Extraction

Save a pipeline with: PDF to PNG (300 DPI) → Deskew → Contrast (increase) → Resize (max 2000px). This produces clean, straight, consistently-sized images ready for accurate text extraction.

Splitting a Multi-Page Contract

Use PDF to PNG to convert a 20-page contract, then Remove Pages to drop cover pages and blank pages. The output is a clean set of content pages ready for form instance creation.

Redacting Sensitive Information

Apply Mask Region to white-fill areas containing personal data (SSN, account numbers) before sharing documents externally. Chain with Grayscale for a consistent look.

Creating Review Sheets

Use PDF to PNG → Resize (small thumbnails) → Pack (4 per group, vertical) to create compact review sheets from multipage documents. Ideal for quick visual comparison.

Cleaning Up Phone Photos

Chain Deskew → Crop (remove borders) → Contrast → Resize to turn rough phone photos of documents into clean, standardized images suitable for archiving or automation.

Deduplicating Bulk Scans

When scanning large batches, duplicate pages are common. Use Deduplicate (threshold 85%) to automatically remove near-identical pages, then Reorder Pages to arrange the remaining pages correctly.


Managing Saved Pipelines

  • Edit — Modify steps, reorder, enable/disable individual steps
  • Archive — Remove a pipeline from the Saved Pipelines list

Step log of a run

Each run records a detailed per-step execution log. After a run completes (or fails), you can see:

  • Step type and position — which operation ran and in what order
  • Status — completed or failed
  • Duration — how long the step took (in milliseconds)
  • Input/output counts — how many files went in and came out
  • Error message — details if a step failed

When a run produces multiple output files, they are automatically bundled as a ZIP archive for download.


Tips

  • Steps run in order. Place PDF to PNG first when working with PDFs.
  • Disable steps temporarily instead of removing them — you can re-enable them later.
  • Use Quick Process to experiment before saving a pipeline.
  • The search in Execution logs matches both the run name and the pipeline name, so you can find all runs of one pipeline quickly.
  • Accepted file types: PDF, PNG, and JPG/JPEG.

Need More Help?

Ask AI Assistant