textproc/py-ocrmypdf 16.11.1 FreeBSD
Adds an OCR text layer to scanned PDF files
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MPL20
- Categories
- textproc, python
- Package size
- 295.4 KiB, 1660.3 KiB installed
Description
OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched or copy-pasted.
Main features:
* Generates a searchable PDF/A file from a regular PDF * Places OCR text accurately below the image to ease copy / paste * Keeps the exact resolution of the original embedded images * When possible, inserts OCR information as a "lossless" operation without disrupting any other content * Optimizes PDF images, often producing files smaller than the input file * If requested deskews and/or cleans the image before performing OCR * Validates input and output files * Distributes work across all available CPU cores * Uses Tesseract OCR engine to recognize more than 100 languages * Scales properly to handle files with thousands of pages * Battle-tested on millions of PDFs
In the other systems
The newest version among them is 16.11.1, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| FreeBSD | textproc/py-ocrmypdf | 16.11.1 newest | none known | - | [email protected] | - |
| DragonFly | textproc/py-ocrmypdf | 16.10.0 | none known | - | [email protected] | - |
| HardenedBSD | textproc/py-ocrmypdf | 16.11.1 newest | no data | - | [email protected] | - |
| GhostBSD | textproc/py-ocrmypdf | 16.11.1 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install py312-ocrmypdf
From the ports tree:
cd /usr/ports/textproc/py-ocrmypdf/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-ocrmypdf>0:textproc/py-ocrmypdf
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 16.11.1 | 16.11.1 | - | 16.10.4 | 16.11.1 |
| FreeBSD:14:quarterly | 16.11.1 | 16.11.1 | n/a | 16.10.4 | 16.11.1 |
| FreeBSD:15:latest | 16.11.1 | 16.11.1 | n/a | 16.10.4 | 16.10.4 |
| FreeBSD:15:quarterly | 16.11.1 | 16.11.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 16.11.1 | 16.11.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}hatchling>0: devel/py-hatchling${PYTHON_PKGNAMEPREFIX}hatch-vcs>0: devel/py-hatch-vcs
Runtime 10
${PYTHON_PKGNAMEPREFIX}deprecation>=2.1.0: devel/py-deprecation${PYTHON_PKGNAMEPREFIX}img2pdf>=0.5: graphics/py-img2pdf${PYTHON_PKGNAMEPREFIX}packaging>=20: devel/py-packaging${PYTHON_PKGNAMEPREFIX}pillow>=10.0.1: graphics/py-pillow${PYTHON_PKGNAMEPREFIX}pillow-heif>0: graphics/py-pillow-heif${PYTHON_PKGNAMEPREFIX}rich>=13: textproc/py-rich${PYTHON_PKGNAMEPREFIX}pdfminer.six>=20220319: textproc/py-pdfminer.six${PYTHON_PKGNAMEPREFIX}pikepdf>=8.10.1: textproc/py-pikepdf${PYTHON_PKGNAMEPREFIX}pluggy>=1: devel/py-pluggytesseract: graphics/tesseract
Test 4
${PYTHON_PKGNAMEPREFIX}hypothesis>=6.36.0: devel/py-hypothesis${PYTHON_PKGNAMEPREFIX}pytest-xdist>=2.5.0: devel/py-pytest-xdist${PYTHON_PKGNAMEPREFIX}python-xmp-toolkit>=2.0.1: textproc/py-python-xmp-toolkit${PYTHON_PKGNAMEPREFIX}reportlab>=3.6.8: print/py-reportlab
The full lists below include those, and their dependencies in turn.
Build dependencies 22
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-build
- devel/py-hatch-vcs
- devel/py-hatchling
- devel/py-installer
- devel/py-packaging
- devel/py-pathspec
- devel/py-pluggy
- devel/py-pyproject-hooks
- devel/py-setuptools
- devel/py-setuptools-scm
- devel/py-trove-classifiers
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-tomlkit
Run dependencies 164
- archivers/brotli
- archivers/libarchive
- archivers/libdeflate
- archivers/liblz4
- archivers/lzo2
- archivers/zstd
- audio/lame
- audio/libogg
- audio/libvorbis
- audio/mpg123
- audio/opus
- converters/fribidi
- converters/libiconv
- databases/gdbm
- devel/dbus
- devel/dbus-glib
- devel/gettext-runtime
- devel/glib20
- devel/icu
- devel/libdaemon
- devel/libdatrie
- devel/libepoll-shim
- devel/libevent
- devel/libffi
- devel/libinotify
- devel/libpciaccess
- devel/libthai
- devel/libunistring
- devel/llvm12
- devel/pcre2
- devel/py-cffi
- devel/py-deprecated
- devel/py-deprecation
- devel/py-lxml
- devel/py-olefile
- devel/py-packaging
- devel/py-pluggy
- devel/py-pycparser
- devel/py-wrapt
- devel/readline
- devel/sdl20
- devel/spirv-llvm-translator
- dns/libidn
- dns/libidn2
- dns/libpsl
- ftp/curl
- graphics/cairo
- graphics/gdk-pixbuf2
- graphics/giflib
- graphics/graphite2
- graphics/jbig2dec
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lcms2
- graphics/leptonica
- graphics/lerc
- graphics/libavif
- graphics/libdrm
- graphics/libglvnd
- graphics/libheif
- graphics/libimagequant
- graphics/libyuv
- graphics/mesa-libs
- graphics/openjpeg
- graphics/openjph
- graphics/png
- graphics/pngquant
- graphics/poppler-data
- graphics/py-img2pdf
- graphics/py-pillow
- graphics/py-pillow-heif
- graphics/spirv-tools
- graphics/tesseract
- graphics/tesseract-data
- graphics/tiff
- graphics/unpaper
- graphics/vulkan-loader
- graphics/wayland
- graphics/webp
- lang/perl5.42
- lang/python312
- lang/python315
- lang/tcl86
- math/gmp
- math/mpdecimal
- misc/hwdata
- misc/shared-mime-info
- multimedia/aom
- multimedia/dav1d
- multimedia/ffmpeg
- multimedia/libass
- multimedia/libbluray
- multimedia/libdvdcss
- multimedia/libdvdnav
- multimedia/libdvdread
- multimedia/libudfread
- multimedia/libvpx
- multimedia/libx264
- multimedia/openh264
- multimedia/svt-av1
The first 100 are listed.
Configuration
Options name: textproc_ocrmypdf
| Option | Default | Description |
|---|---|---|
| PNGQUANT | on | Optimizes the encoding of PNG-style images in PDFs |
| UNPAPER | on | Deskew and clean up pages before OCR processing |
- USES
- ghostscript:run python shebangfix
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ocrmypdf-16.11.1.tar.gz | 7.015278e+06 | 838ab69e0ee0f04feea0d5861a17badecab6d3beaed0e29a97058eadda58cbb1 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.