Patronage & Donations
If you use the Slackware UK services on a regular basis, and would like to contribute to running costs, make a continuing patronage (and receive special benefits), or make a one off PayPal payment, please use one of the following buttons:
Patreon Logo
For regular monthly donations
PayPal Logo
For one time donations
All donations will be gratefully received - thank you!
Toggle theme:Toggle Theme Button
Content of directory's README

pdfsandwich (add OCR text layer to scanned PDF files)

pdfsandwich generates "sandwich" OCR PDF files, i.e. PDF files which
contain only images (no text) will be processed by optical character
recognition (OCR) and the text will be added to each page invisibly
"behind" the images. This makes it possible to search for text in
the PDF, and copy text from the PDF.

Notes:

--
The man page explains this, but I'll mention it here: the "sandwich"
PDF (the output) for filename.pdf will be written to filename_ocr.pdf.

--
According to its man page, pdfsandwich can optionally use hocr2pdf.
However, the version of hocr2pdf on SlackBuilds.org (in the
exact-image package) doesn't seem to work correctly with pdfsandwich.
This isn't a real problem, just don't use the -enforcehocr2pdf option
with pdfsandwich.

--
The PDFs created by pdfsandwich are not quite to spec. In mupdf, you
may see "warning: broken xref subsection, proceeding anyway". This
seems to be harmless. If you discover that it isn't harmless, you
can use ghostscript to fix it, thus:

$ gs -dSAFER -dNOPAUSE -sDEVICE=pdfwrite \
     -sOutputFile=pdf_fixed.pdf pdf_ocr.pdf

Icon  Name                    Last modified      Size  Description
[<--] Parent Directory - [!!!] README 2025-02-15 09:53 1.1K [SPT] pdfsandwich.SlackBuild 2025-02-15 09:53 1.9K [   ] pdfsandwich.info 2025-02-15 09:53 373 [TXT] slack-desc 2025-02-15 09:53 916
Server (facade0) bandwidth utilisation
0  Bandwidth graph measuring   0.04 Gbit/s  10 Gbit/s