PDF Editor
Offline

Native Rust preview / Documentation

Build, work,
check the result.

The preview has a native workstation and a Rust CLI. These instructions describe current source capabilities, their limits and the evidence behind them.

v4.0.0-preview.4 / Standalone CLI

Download the CLI preview

The official prerelease contains five standalone native command-line executables. Choose your operating system and processor. These are unsigned technical preview binaries; the graphical desktop remains a source build.

Official prerelease and notes · Binary sizes and SHA-256 manifest · Release verification evidence · Third-party notices

All five actual-runner release builds and HTTPS global-install tests passed. Release build evidence · HTTPS global installation evidence. This does not establish graphical desktop runtime behavior on Windows or Linux.

Run the downloaded executable

For macOS Apple silicon, from the folder containing your download:

chmod +x ./pdf-editor-offline-darwin-arm64
./pdf-editor-offline-darwin-arm64 --help

On Intel macOS use pdf-editor-offline-darwin-x64. Linux uses the same executable-permission step with your downloaded Linux filename. For Windows x64, open PowerShell in the download folder:

.\pdf-editor-offline-windows-x64.exe --help

Use the chosen executable's name in place of ./target/release/pdf-editor-offline in the examples below. Run --version to check the installed preview version.

Optional npm install

The published npm package installs and launches the matching native CLI. Version 4.0.0-preview.4 is available through the default latest tag. The installer and launcher require Node.js 22 or newer; the standalone CLI downloads above run without Node.js.

npm install --global pdf-editor-offline
pdf-editor-offline --help

This installs the command-line tool. Build the graphical desktop from source using the next section.

Build the native preview

Use Rust 1.95 or newer and the platform development tools required by eframe and native file dialogs. Clone the repository, then run from its root:

git clone https://github.com/OthmaneBlial/pdf-editor-offline.git
cd pdf-editor-offline
cargo run --locked -p pdf-editor-offline-native

For a release build:

cargo build --release --locked -p pdf-editor-offline-native
./target/release/pdf-editor-offline-native

On Windows, the executable is target\release\pdf-editor-offline-native.exe. Platform build prerequisites and current checks are tracked in the desktop README and Rust status.

The macOS interface has been manually reviewed with real files and screenshots. Windows and Linux graphical runtime validation remain open. The desktop is available as source; standalone CLI prerelease downloads are available separately. The current desktop build still awaits a fresh GUI review, as recorded in the native evidence.

Working in the preview

Open a local PDF, use Pages or Search to navigate, and choose real actions from Edit, Organize or the command palette. Save As creates a new verified file. Modified tabs and unapplied document-property drafts guard quitting. Current desktop source opens supported password-protected PDFs in an explicit read-only session; passwords and decrypted snapshots are excluded from recovery.

Command/Ctrl+O opens, Command/Ctrl+F focuses Search, Command/Ctrl+K opens Commands, Command/Ctrl+Z undoes, and Command/Ctrl+Q uses guarded quit. File → Images to PDF creates a new unsaved document from supported PNG/JPEG inputs.

CLI quick start

Build once, then use the explicit executable path. Replace input.pdf and output names with your own paths; every output must be a new file.

cargo build --release --locked -p pdf-editor-offline-cli
./target/release/pdf-editor-offline info input.pdf --json
./target/release/pdf-editor-offline extract-text input.pdf
./target/release/pdf-editor-offline metadata input.pdf --json
./target/release/pdf-editor-offline inspect-security input.pdf --json
./target/release/pdf-editor-offline render-page input.pdf --page 1 --scale 1.5 -o page.png
./target/release/pdf-editor-offline rotate input.pdf --pages 1-3 --degrees 90 -o rotated.pdf
./target/release/pdf-editor-offline merge first.pdf second.pdf -o merged.pdf
./target/release/pdf-editor-offline images-to-pdf first.png second.jpg -o images.pdf --json

Page arguments are one-based. --dry-run is available on supported mutation commands to validate without publication. Signed and encrypted documents cannot be rewritten. Read the CLI command reference for reorder, crop, extraction, notes, metadata changes and output error codes.

Security inspection reports detected structures. It does not verify signature trust, sanitize the PDF or establish PDF/A or PDF/UA conformance.

Current feature status

Native interface and CLI capabilities have separate scopes. A core or CLI feature is not automatically a graphical tool.

Native preview capabilities
AreaAvailable in the native interfaceBoundary
Read & searchTabs, page navigation, zoom, thumbnails, literal text search, extracted textNo OCR or page-coordinate search highlights
OrganizeRotation, move earlier/later, reverse, blank insertion, crop, guarded page ranges, separate merged copies and split tab batches, undo/redoCrop preserves hidden content; subsets and merge refuse unsupported structures or incompatible metadata
PropertiesSix standard fields, Unicode storage, guarded draftsDates/custom fields/XMP preserved; XMP remains unsynchronized
Images to PDFNative PNG/JPEG picker, unsaved document, safe Save AsRestricted format tier; EXIF orientation and unsupported color metadata refused
SaveVerified new file, original preservation, unsaved-close/quit guardExisting files, signed inputs and encrypted inputs are not rewritten
FormsSupported buttons, single/multiline text and indexed dropdown/list choices in current source, with undo/redoText requires an explicit covering font; free-entry combos and advanced text fields remain read-only. Form scope and examples
New page textCanvas drag/move/resize handles, snapping/nudges, numeric controls, guarded apply and undo/redoExplicit covering font, rectangle, size, color and alignment. Existing text is retained. Reproduce the PDF exports
Sticky notesBounded page-note discovery, guarded add/edit/remove and durable historyNew notes use a fixed yellow appearance; linked, named and locked cases remain read-only. Removal is not secure erasure. Note workflow and limits
Existing page textSupported ASCII operands in twelve standard Courier/Helvetica/Times faces; source-bound value, size, position and RGB changes with undo/redoDefault preserves nominal word advances; width changes are explicit. Untouched numeric tokens remain intact; embedded fonts, reflow and secure erasure are unsupported. Editing tier and reproducible checks
Drawing and image insertionNew rectangles, ellipses, lines, bounded freehand paths and PNG/JPEG placement with quarter-turnsProtected canvas drafts and durable history. Broader manual platform review remains open. Drawing guide · Image scope
Existing image replacementSource-bound direct page image selection, PNG/JPEG replacement and durable undo/redoRetains original transforms and other shared occurrences; old objects remain. Form/inline/complex carriers are refused. Replacement scope
Page numbersUpright header/footer numbers for selected pages, explicit font and one atomic history stepNew overlays; prior numbers remain. Unsupported structure or unfit glyphs refuse the batch. Numbering and performance records
Visual signaturesDraw bounded multiple pen strokes as vector artworkNo certificate, identity proof or signature field. Typed/image signature tools remain open. Visual signature scope
More advanced editingOutside this native previewArbitrary content editing, advanced forms, certificate signing, secure redaction and OCR remain unavailable

Bundled fonts include IBM Plex, Noto Symbols and a CJK fallback. Native CJK text has been exercised; complete Unicode shaping, right-to-left editing and screen-reader operation are separate validation work.

See the migration matrix for the broader plan and the known limitations for practical boundaries.

Create a targeted cleanup copy

Current source removes supported metadata, file associations, attachment annotations and actions through a full rewrite. Build the current CLI first; this command is outside the published preview 3 binaries.

cargo build --release --locked -p pdf-editor-offline-cli
./target/release/pdf-editor-offline sanitize input.pdf -o cleaned.pdf --dry-run --json

Remove --dry-run to save a verified new copy to an unused filename. In the desktop, choose Create targeted sanitized copy… from Edit or Commands; review the scope, create a separate unsaved tab, then use Save As.

This preserves page content and can leave other private information. It is not secure text/image redaction or a general privacy certificate. Unsupported structures and retained private aliases are refused. Read the removal scope, retained data and verification checks.

Data and output boundaries

Rendering and document operations run locally. The native workflow does not require a web service or an account. Limits constrain inputs and output data; successful rendering alone does not establish document fidelity or safe handling of every hostile file.

  • PDF input: at most 128 MiB. Main preview output: 8192 pixels per side and 16,777,216 pixels total.
  • Thumbnails: visible rows only, a shared 8 MiB pixel-payload cache and at most 128 entries. Driver allocations and transient copies are additional.
  • Search: literal query, at most 200 matching pages; extracted page text retained up to 1 MiB. Partial results are reported.
  • Standard metadata fields: at most 64 KiB of UTF-8 each. Clearing a field removes its active entry; earlier data can remain in the file.
  • Image conversion: 32 MiB per encoded input, 128 MiB total before conversion, 8192 pixels per side and 8,388,608 pixels per image. One source pixel equals one PDF point.

PNG samples and alpha are preserved losslessly in the supported tier. JPEG codestreams are retained after bounded validation. Conversion is not a metadata sanitization operation, and different readers can sample transparency edges differently.

Read the converter boundaries, threat model and privacy notes before relying on a result.

Dated evidence, precise scope

The 13 October 2026 local release-CLI report at clean source ab0b24b passes 44/44 operation records, with zero failed or skipped records, in 7.973 seconds. It covers 11 fixtures, including a deterministic 1,000-page file, and four operation classes: info, text extraction, rotation and compression.

The earlier 12 October checkpoint at source 49bd559 recorded 229 normal workspace tests and 10 explicitly run reference/helper tests. Those 10 are additional tests, not a count of corpus documents. Later work changes the current test count; this is a dated checkpoint.

Pinned Poppler 26.10.0 and qpdf 12.4.2 validate defined geometry, text and structural boundaries. Reference work sits outside timed operation samples. The matrix does not measure native GUI responsiveness, peak process memory, comparative speedups, image conversion or complete raster fidelity.

Benchmark method and report · Machine-readable CLI report · Native runtime evidence

The screenshots on this site are actual macOS native captures from 12 October 2026. They show the workstation, thumbnails, editable metadata with CJK text, blank insertion and crop dialogs. They are not a complete product certification.

Inspect and contribute

The repository keeps the Rust workspace, native applications, supporting evidence and explicit feature boundaries together. Contributions should include validation appropriate to the change and preserve original documents.

Repository · Contributing · Security policy · MIT license

This static site serves local fonts and actual screenshot assets. Its IBM Plex font files are distributed with the SIL Open Font License and pinned provenance.