Skip to content

LumenPDF 0.2.0

Choose a tag to compare

@ScotteLiu ScotteLiu released this 31 Jul 03:58
· 28 commits to main since this release

Adds OCR, Google Drive, a recorded demo, and coverage for writing systems
beyond Latin.

The installer is 1 MB smaller than 0.1.0 despite the new features, because
OCR uses the recogniser Windows already ships rather than bundling one.

OCR — scanned pages become searchable

An invisible text layer is written underneath the image. The scan looks
identical, and becomes searchable, selectable and copyable.

Verified by flattening a page to a bare scan and recognising it: the page went
from 0 characters to 254, and a search that found 6 matches found 8.

Backed by Windows' own OCR engine — offline, nothing extra to download, and it
uses whichever languages your system already has. The app lists the languages
your machine actually has rather than pretending every language works. The
trade is stated plainly: available languages are Windows' to decide, and this
is the one part with no cross-platform story yet.

Every script, not just Latin

"CJK support" was the wrong framing for what is a correctness problem in every
writing system. Ten writing systems are now regression-tested on every change,
each with a phrase chosen for how it can fail: right-to-left order in Arabic
and Hebrew, stacked tone marks in Vietnamese, clusters in Devanagari and Thai,
final sigma in Greek, and scripts written without spaces.

Google Drive

Open from Drive, edit, and save back to the same file, keeping its ID and
sharing. Scoped to drive.file, so it can only touch files you explicitly open
or that LumenPDF created — it cannot see the rest of your Drive, and that
boundary is enforced by Google rather than promised by us.

Requires your own OAuth client, which takes a few minutes to create. A
client ID identifies an application and cannot be obtained on your behalf;
see docs/GOOGLE-DRIVE-SETUP.md.
Until credentials are present, the Drive actions stay hidden rather than
appearing and failing.

Sign-in uses PKCE in your real browser, not an embedded one, and the refresh
token is encrypted with the Windows Data Protection API.

Demo

The video on https://scotteliu.github.io/LumenPDF/ is the application
recording its own window frame by frame while a scripted timeline drives the
real controllers. Nothing is staged.

Verification

65 assertions in scripts/run-tests.ps1, none of them screenshot comparisons.