DeskewPro Documentation

Everything you need to crop, deskew, and dewarp scanned book PDFs on your Mac.

Getting Started

DeskewPro welcome screen

Opening a PDF

Use File > Open File... (Cmd+O) or click "Open File..." on the welcome screen. You can select multiple PDFs at once to combine them into a single project, which is useful for books scanned in two halves.

When you open multiple files, the Document Manager dialog appears so you can arrange the document order before loading. DeskewPro works with scanned book PDFs and lets you define crop regions, correct distortion, and export a new cropped PDF.

Projects

Every time you open a PDF, DeskewPro creates a project that stores all your crop settings, page order, rotations, and correction parameters. If you open the same PDF again later, DeskewPro finds the existing project and restores your settings automatically.

Projects are saved in the app's data directory. Your source PDFs are never modified. Use the "Projects..." button on the welcome screen to browse, open, or delete projects. Deleting a project removes only the saved settings, not your source files.

Recent Projects

The welcome screen shows recently opened projects. Click a project name to reopen it. Use the X button to remove an entry from the list, or "Clear All" to clear the entire list. This only affects the recent list; the projects themselves are not deleted.

Renaming a Project

Use File > Rename Project... to change the project name. Type a new name and click Rename (or press Return) to confirm. The new name appears in the window title bar, is saved to the project file, and updated in the recent projects list.

Interface Layout

DeskewPro main window with sidebar, canvas, and inspector

Sidebar (Page Thumbnails)

The left sidebar shows a scrollable list of page thumbnails. Each thumbnail displays a mini crop overlay and a colored dot indicating page type (see color coding below). The project page number appears at the top right of each row, and the original document page number appears at the bottom right in a color assigned to its source document.

Hover over the original page number to see the source document name. Click a thumbnail to navigate to that page. Drag and drop thumbnails to reorder pages.

Page thumbnail sidebar with color-coded dots

Main Canvas

The center area shows the current page at 150 DPI with the crop overlay. The crop box border color indicates whether the page uses the odd template (green), even template (blue), a per-page override (orange), or is skipped (gray). Drag the edge handles to adjust the crop.

Canvas showing blue even-page crop box

Zoom and Pan

Use pinch-to-zoom on a trackpad or View > Zoom In (Cmd++) / Zoom Out (Cmd+-) to zoom the page view. Scroll with two fingers to pan when zoomed in. Use View > Zoom to Fit (Cmd+0) to reset.

The viewport auto-adjusts when content changes (rotation, crop drag, lock toggle, page navigation) by zooming out or panning just enough to keep everything visible, without fighting your chosen position. Zoom is purely visual and does not affect crop coordinates or export.

Inspector Panel

The right panel contains all controls: Document Defaults (global templates for even/odd pages), Page Overrides (per-page crop, rotation, correction), and Export Options (uniform page size).

Status Bar

The bottom bar shows the current page number, even/odd designation, page dimensions (in 150 DPI pixels), rotation angle (if non-zero), and spine direction (if correction is enabled). Crop margins are stored as proportional percentages, so they scale correctly across pages of different sizes.

Status bar showing page info

Color Coding

Colors indicate the source of settings throughout the app:

These colors appear on crop box borders, sidebar dots, inspector labels, and the spine position line on the canvas.

Sidebar showing green, blue, orange, and gray page dots

Page Navigation

Use the Left/Right arrow keys to move between pages. You can also click any page thumbnail in the sidebar. The current page is highlighted in the sidebar list.

Page Reordering

Drag and drop pages in the sidebar to rearrange them, or use the up/down chevron buttons on each page row. The new order affects export output and even/odd template assignment (templates follow display position, not original PDF page number). Per-page overrides stay with their page regardless of position. Reordering is undoable with Cmd+Z.

Set Page 1

Right-click a page in the sidebar and choose "Set as Page 1" to designate it as page 1. Pages before it get numbered 0, -1, -2, etc. This affects even/odd template assignment: page 1 is always odd, page 2 is even, and so on. Use "Reset Page Numbering" (also in the right-click menu) to restore the default numbering.

Page Numbering Mode

When a project contains pages from multiple source PDFs, an arrow indicator appears next to the page numbers in the sidebar. The arrow points at the number that determines even/odd template assignment. Click the arrow area to toggle between:

In Document mode, Set Page 1 and Reset Page Numbering operate per-source-document, so each PDF independently controls its own page 1 offset.

Right-click context menu on page thumbnail

Removing Pages

Right-click a page in the sidebar to access page actions. Choose "Skip Page" to toggle skipping, or "Remove Page" to remove it from the project. You can also select a page and press Delete to remove it. Removing a page is undoable with Cmd+Z.

Close Project

Use File > Close Project (Cmd+W) to close the current project and return to the welcome screen. The project is saved automatically before closing. You can reopen it later from the recent projects list.

Document Defaults (Global Templates)

Template Modes

Inspector showing Document Defaults section

DeskewPro supports four template modes, selected using the radio buttons in the Document Defaults section:

Crop Box Fields

Each crop box is defined by four margin insets: Left, Top, Right, and Bottom. These are percentages of the page width (for Left/Right) or height (for Top/Bottom). For example, 10% on a 1000px-wide page means 100px from that edge. A pixel equivalent is shown next to each field for reference.

You can type exact values into the text fields or use the stepper buttons (step size: 0.5%). You can also drag the edge handles directly on the canvas. Because margins are proportional, the same crop settings work correctly across pages of different sizes.

Template Rotation

Rotation controls

Each template (even/odd) has a rotation angle in degrees. Use the text field for precise values, the stepper (0.5 degree steps), or the inline 90-degree rotation buttons for quick quarter-turn adjustments. The crop box stays level on screen while the page rotates underneath, so what you see in the canvas is what you get on export. Rotation is applied visually on the canvas and during export.

Template Correction

Each template has a "Correct" toggle. When enabled, image correction is applied to all pages using that template. Below the toggle, stage controls (Deblur, Deskew), model selection (AI Model, Spine Physics), and parameter sliders appear. See Image Correction for the full control reference.

Lock Defaults

The pill-shaped Lock/Unlock button next to "DOCUMENT DEFAULTS" controls whether global templates are protected from accidental edits:

This lets you set up your global defaults, lock them, and then work on per-page overrides without risk of changing the defaults.

Locked defaults with orange pill button

Page Overrides

Crop Override

Toggle "Crop" in the Page Overrides section to give a page its own crop box, independent of the even/odd template. When enabled, the crop box border turns orange. The override starts as a copy of the current template values. Disable the toggle to revert to the template.

Orange crop box indicating a per-page override

Rotation Override

Toggle "Rotate" to give a page its own rotation angle. When enabled, an orange rotation control appears. The override starts with the current template rotation value. Disable to revert to the template rotation.

Auto-Level

Click "Auto-Level" in the Page Overrides section to automatically detect and correct page skew. The app analyzes text line angles using Vision and applies a small rotation correction as a per-page override. A colored confidence dot appears next to the button:

When you click Auto-Level, a dialog offers "This Page" or "All Pages". Choosing "All Pages" analyzes every page in the document, with a progress overlay that can be cancelled with Escape. All corrections are grouped into a single undo action.

Auto-Level button with confidence indicator

Correction Override

Toggle "Correct" in overrides to give a page its own correction settings. An "Enabled" sub-toggle appears to turn correction on or off for this page independently of the template. When overridden, the spine position indicator on the canvas turns orange. Disable the override toggle to revert to the template settings.

Skip Page

Toggle "Skip" to exclude a page from export. Skipped pages appear grayed out in the sidebar with a gray dot, and their crop overlay turns gray. In Two-Up mode, each facing (left/odd and right/even) has its own skip toggle, so you can exclude just one side while keeping the other.

Skipped page with gray overlay

Image Correction

How It Works

Image correction fixes the blur and warping that occurs near book spines in scanned pages. Toggle "Correct" in the inspector to enable it. The correction pipeline has two independent stages, each controlled by an Off/On toggle:

  1. Deblur (Richardson-Lucy deconvolution). Removes blur caused by the page curving away from the scanner glass.
  2. Deskew (mesh-based displacement). Straightens curved text lines near the spine.

Each stage can be turned on or off independently. If both stages are off, the inspector shows "All stages are off. No correction will be applied."

Image correction with spine physics model

Deskew Type

When Deskew is on, a "Deskew Type" section appears with two checkboxes that control which model drives the dewarping:

Check both for a blended mode. Uncheck both to disable dewarping while keeping Deblur active.

AI Model correction controls

Model Blend

Appears when both AI Model and Spine Physics are checked. A slider (0.0 to 1.0) controls the mix between the two models: 0.0 = pure Spine Physics, 1.0 = pure AI, 0.5 = equal blend. Useful when one model captures certain distortions better than the other.

Blended mode with Model Blend slider

AI Intensity

Appears when AI Model is checked. Scales the AI dewarping strength (0.1 to 3.0, default 0.5). Values below 1.0 reduce the correction for subtle adjustments. Values above 1.0 amplify it for heavily warped pages.

Spine Position and Direction

When Spine Physics is checked, a "Spine Pos" row appears with a 3x3 direction pad for quick positioning. The four cardinal buttons set the spine to the corresponding edge (Left, Right, Top, Bottom). The center button toggles between center-vertical and center-horizontal. The currently matching direction is highlighted. Diagonal buttons are disabled.

Spine Pos direction pad in inspector

On the canvas, a draggable spine line appears on the crop region showing the spine position. The line is vertical (for left/right/center-vertical spines) or horizontal (for top/bottom/center-horizontal spines). Drag it to fine-tune the position. The line color follows the standard color scheme.

Draggable spine line on canvas

Physics Sliders

These sliders appear when Spine Physics is checked. They model the 3D shape of a curved book page:

Spine Angle and Spine Depth sliders

Shared Deskew Sliders

These sliders appear whenever any deskew model is active (AI Model, Spine Physics, or both):

Deblur Intensity

Appears when Deblur is on and a correction source is active. A slider (0.0 to 4.0, default 2.0) controls the deconvolution strength. Higher values apply stronger blur removal. Adjust based on how severe the spine blur is.

Deblur Intensity slider

3D Viewport

When correction is enabled, the main viewport shows the page curved in 3D according to the current model. Click and drag on empty viewport space to orbit the view. Double-click to return to top-down. Six camera preset buttons appear at the bottom-left of the canvas: Left, Top (Ortho), Right, Low Front-Left, Low Front, and Low Front-Right.

3D viewport with camera preset buttons

Multi-PDF Projects

Opening Multiple Files

When using "Open File...", you can select multiple PDFs. The Document Manager dialog appears so you can arrange the order of the documents before they are loaded. Pages from all documents are combined into a single project in the order you specify.

Adding Files to a Project

Use File > Add File(s)... to add more PDFs to an open project. You can also add files directly from the Document Manager by clicking "Add File...". New documents are marked with a blue badge.

Document Manager dialog

Document Manager

The Document Manager opens as a separate window that you can move and resize, which is useful when document names are long. Use the up/down chevron buttons next to each document to reorder them. Click "Add File..." to add more PDFs without leaving the dialog.

When pages from different documents have been interleaved (by manual page reordering), they appear as a single "Merged" group. Use the "Unmerge" button to split them back into individual documents.

For multi-document projects, a "Use document page numbers for even/odd" toggle appears. When enabled, even/odd template assignment uses the original page number within each source PDF instead of the project display order.

Removing Documents

In the Document Manager dialog, click the trash icon next to a document group to remove it and all its pages from the project. At least one document must remain. The removal takes effect when you confirm the dialog and is undoable with Cmd+Z.

Export

Export Preview

The "EXPORT PREVIEW" panel shows a rendered preview of how the current page will look after export, with all crop, rotation, and correction applied. In Two-Up mode, a "Facing" picker lets you switch between viewing the Left (Odd) and Right (Even) output.

Export Preview panel

Exporting a PDF

Use File > Export (Cmd+E) to export. DeskewPro opens a save dialog, then rasterizes each non-skipped page in display order, applying crop, rotation, and correction. A progress overlay shows export status and can be cancelled with Escape. When complete, the exported file is revealed in Finder.

Export Quality Settings

Open via DeskewPro > Settings (Cmd+,). These are global settings that control export quality:

Use "Reset to Defaults" to restore the reference values. These settings are not per-project; they apply to all exports.

Export Quality Settings dialog

Uniform Page Size

When enabled (default), all exported pages are the same size, determined by the largest crop region. Smaller crops are centered on a white background. Disable to let each page have its own size based on its crop region.

Undo and Redo

Cmd+Z undoes the last action. Cmd+Shift+Z redoes. DeskewPro supports up to 100 levels of undo. All inspector changes, drag operations, and resets are undoable. Undo history is in-memory only and is cleared when a new PDF is opened.

Use Edit > Reset All Settings (Cmd+Shift+R) to reset all crop settings to defaults. Shows a confirmation dialog before proceeding. Can be undone with Cmd+Z.

Keyboard Shortcuts

ShortcutAction
Cmd+OOpen File
Cmd+WClose Project
Cmd+EExport PDF
Cmd+ZUndo
Cmd+Shift+ZRedo
Cmd+Shift+RReset All Settings
Cmd+,Settings (Export Quality)
Cmd+?Help (opens this page)
Cmd++Zoom In
Cmd+-Zoom Out
Cmd+0Zoom to Fit
Left ArrowPrevious page
Right ArrowNext page
DeleteRemove selected page

Troubleshooting

Debug Log

DeskewPro writes a debug log to ~/Library/Application Support/DeskewPro/debug.log. The log rotates at 512KB. Check this file if you experience unexpected behavior.

Project File Location

Project files are stored in ~/Library/Application Support/DeskewPro/projects/. Each project contains all crop settings and page references. Opening the same PDF again restores the existing project.

Missing source file dialog

Missing Source Files

When a project is opened or export starts, DeskewPro checks that all referenced source PDFs still exist. If any files have been moved, renamed, or deleted, a dialog appears with options for each missing file:

Acknowledgements

UVDoc

The AI dewarping model uses UVDoc, a neural grid-based document unwarping network (SIGGRAPH Asia 2023) by Tanguy Magne. Licensed under the MIT License.