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 reusable pipelines you can save as recipes.

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

Recipes

A recipe is a saved pipeline of processing steps. Create it once, then reuse it whenever you have similar documents. Each recipe has a name, 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. Runs can be linked to a saved recipe or be ad-hoc (Quick Process).


Quick Process (One-Time)

  1. Navigate to Doc Prep in the sidebar
  2. Click Start on the Quick Process card
  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.


Creating a Recipe

  1. Navigate to Doc PrepNew Recipe
  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 Recipe

You can also clone an existing recipe to use it as a starting point.


Running a Recipe

  1. Open the recipe's detail page
  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

Recent Runs

The main Document Preparation page shows all your recent pipeline runs across recipes and ad-hoc executions. Each entry displays the run name, the recipe name (if linked), status, timing, and a download link.

Search

Use the search box to find runs by run name or recipe name. The search is case-insensitive and matches partial text.

Date Filters

Click the Date dropdown to narrow results by time range:

  • Last hour — runs from the past 60 minutes
  • Today — runs since midnight
  • Last week — runs from the past 7 days
  • Custom range — pick specific start and end dates

Pagination

Runs are displayed 5 per page with Previous/Next navigation. All filters are preserved when navigating between pages.


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)
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

Create a recipe with: PDF to PNG (300 DPI) → DeskewContrast (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 PNGResize (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 DeskewCrop (remove borders) → ContrastResize 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 Recipes

  • Edit — Modify steps, reorder, enable/disable individual steps
  • Archive — Soft-delete a recipe (removes it from the list)
  • Clone — Create a copy of an existing recipe as a starting point

Execution Log

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 recipe.
  • The search in Recent Runs matches both the run name and the recipe name, so you can find all runs for a specific recipe quickly.
  • Accepted file types: PDF, PNG, and JPG/JPEG.

Need More Help?

Ask AI Assistant