[sane-devel] scantpaper v4.0.1 released

Jeff jffry at posteo.net
Sun Oct 25 07:07:17 GMT 2026


Changes compared to v3.0.24:

* Migrated Gtk3->4
* User-defined tools can now process all selected pages in a single
   invocation: tick "Process selected pages at once" in the user-defined
   tools dialog and `%i` expands to every page's working file, space-
   separated, so a tool that edits in place (e.g. `mogrify -negate %i`)
   handles the whole selection in one run. Only the pages whose file
   actually changed are replaced, and the whole batch is a single undo
   step (one Undo restores every page). `%o` and `%r` are not available
   in batch mode, so a tool that uses them still runs one page at a time.
* Saving a PDF with the "JBIG2" compression option now encodes greyscale
   and colour pages with JBIG2 as well, by thresholding them to black-
   and-white first, exactly as the "G4" option does. Previously such
   pages were silently embedded as JPEG, so a JBIG2 save of a non-black-
   and-white document could be much larger than expected. Pages with
   transparency keep lossless Flate encoding.
* When the scan options request 1-bit output - a 1-bit depth, or a
   bilevel scan mode such as Lineart - delivered pages are now checked
   against that request. Bilevel transfers always arrive as 8-bit
   grayscale, because the SANE front-end expands them even when the
   driver sends 1-bit data; such pages are now converted to
   black-and-white at scan time with the colour-aware Threshold
   semantics and value, a notice is shown in the progress bar, and a
   warning is logged. Previously the pages stayed grayscale, so saving
   with "Automatic" PDF compression embedded them as JPEG instead of
   Group 4 or JBIG2.
* Rotated text slices are now rendered at their angle in saved PDFs. The
   effective angle is written to the OCR line that OCRmyPDF reads, mixed-
   angle lines are split, and manually added vertical words no longer
   spill down the page as oversized horizontal text. The minimum OCRmyPDF
   version is now 16.10.0, the first release that honours the hOCR text
   angle.
* Long OCR and processing batches no longer run out of file descriptors.
   Each completed background request now closes its PID file immediately
   instead of waiting for a full garbage-collection pass. A PID-file
   failure is also reported through the normal error dialog with the
   original operating-system error, rather than being masked by a
   callback-signature `TypeError`.
* OCR can now recognise several languages at once. In the scan window
   and the **Tools → OCR** dialog, pick a primary language and tick
   additional languages in the popover; they are stored as a `+`-joined
   list (for example `deu+eng`) with the primary first.
* Saving a PDF now processes one page at a time and page images are
   decoded on demand, so a document with many high-resolution pages no
   longer keeps every decoded page in memory at once. Previously a save
   decoded and held every page (roughly 66 MB per page), so a 330-page
   scan could exhaust the process's memory and be killed; such documents
   now save within a single page's working set.
* The Fedora and openSUSE RPM specs are now templates rendered at build
   time from the selected git revision.

Available on Github:

https://github.com/carygravel/scantpaper/releases/tag/v4.0.1

Or via the PPA:

https://launchpad.net/~jeffreyratcliffe/+archive/ubuntu/ppa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20261025/42fce5cd/attachment.sig>


More information about the sane-devel mailing list