notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Port details
py-ocrmypdf Adds an OCR test layer to scanned PDF files
9.0.1 textproc on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port Version of this port present on the latest quarterly branch.
Maintainer: search for ports maintained by this maintainer
Port Added: 2019-07-12 15:08:19
Last Update: 2019-08-13 20:32:17
SVN Revision: 508849
Also Listed In: python
License: GPLv3+
SVNWeb : Homepage

There is no configure plist information for this port.

Dependency lines:
  • py36-ocrmypdf>0:textproc/py-ocrmypdf
To install the port: cd /usr/ports/textproc/py-ocrmypdf/ && make install clean
To add the package: pkg install py36-ocrmypdf
PKGNAME: py36-ocrmypdf
Package flavors (<flavor>: <package>)
  • py36: py36-ocrmypdf

NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py36-cffi>=1.9.1 : devel/py-cffi@py36
  2. py36-pytest-runner>=0 : devel/py-pytest-runner@py36
  3. py36-setuptools_scm>=0 : devel/py-setuptools_scm@py36
  4. py36-setuptools_scm_git_archive>=0 : devel/py-setuptools_scm_git_archive@py36
  5. py36-setuptools>0 : devel/py-setuptools@py36
  6. python3.6 : lang/python36
Runtime dependencies:
  1. py36-cffi>=1.9.1 : devel/py-cffi@py36
  2. py36-img2pdf>=0.3.0,<0.4 : graphics/py-img2pdf@py36
  3. py36-pillow>=4.0.0 : graphics/py-pillow@py36
  4. py36-tqdm>=4 : misc/py-tqdm@py36
  5. py36-reportlab>=3.3.0 : print/py-reportlab@py36
  6. py36-chardet>=3.0.4,<4 : textproc/py-chardet@py36
  7. py36-pdfminer.six>=20181108 : textproc/py-pdfminer.six@py36
  8. py36-pikepdf>=1.6.0,<2 : textproc/py-pikepdf@py36
  9. tesseract : graphics/tesseract
  10. ghostscript9-agpl-base>=9.16_2 : print/ghostscript9-agpl-base
  11. py36-setuptools>0 : devel/py-setuptools@py36
  12. python3.6 : lang/python36
Library dependencies:
  1. : graphics/leptonica
There are no ports dependent upon this port

Configuration Options


Master Sites:
Notes from UPDATING
These upgrade notes are taken from /usr/ports/UPDATING
  • 2017-11-30
    Affects: */py*
      Ports using Python via USES=python are now flavored.  All the py3-* ports
      have been removed and folded into their py-* master ports.
      People using Poudriere 3.2+ and binary packages do not have to do anything.
      For other people, to build the Python 3.6 version of, for example,
      databases/py-gdbm, you need to run:
        # make FLAVOR=py36 install

Number of commits found: 5

Commit History - (may be incomplete: see SVNWeb link above for full details)
13 Aug 2019 19:32:17
Original commit files touched by this commit  9.0.1
kai search for other commits by this committer
textproc/py-ocrmypdf: Update to 9.0.1

* Make the dependency for graphics/pngquant optional as pngquant is not
  strictly required but should be provided where possible.
* Set the new option as non-default for a while because there's a bug that
  leads to incorrect inverted PNG images in conjunction with pngquant.
* Install shell auto-completions to improve user experience.
* Remove the "slow" tests from the "do-test" target. There's very little
  point to run those at downstream.

Changelog since 8.3.2:
03 Aug 2019 22:21:57
Original commit files touched by this commit  8.3.2
kai search for other commits by this committer
textproc/py-ocrmypdf: Update to 8.3.2

15 Jul 2019 10:14:38
Original commit files touched by this commit  8.3.1
kai search for other commits by this committer
textproc/py-ocrmypdf: Use defined locale in whole build process

* Set the locale globally for {CONFIGURE,MAKE}_ENV so that the locale
  doesn't need to be set explicitly for the do-test target.

* Use ECHO_CMD instead of ECHO as the latter one is already defined in
  /usr/share/mk/, which can either be "echo" or "true" if the make
  flag -s is given.

Suggested by:	sunpoet
12 Jul 2019 17:20:33
Original commit files touched by this commit  8.3.1
kai search for other commits by this committer
textproc/py-ocrmypdf: Apply workaround for missing files a bit earlier

* The post-stage target runs very late in the install process and should be
   only used if the post-install target ran too early.

   Thus place the workaround that copes with the missing files to the
   post-install target where it fits better.

Suggested by:	mat
12 Jul 2019 15:08:04
Original commit files touched by this commit  8.3.1
kai search for other commits by this committer
New port: textproc/py-ocrmypdf

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


Reviewed by:	0mp, koobs
Differential Revision:

Number of commits found: 5

User Login
Create account

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD

This site
What is FreshPorts?
About the authors
How big is it?
The latest upgrade!

Enter Keywords:

Latest Vulnerabilities
libgit2Aug 18
xdmAug 18
apache24Aug 17
userminAug 17
webminAug 17
cupsAug 16
libnghttp2Aug 16
nghttp2Aug 16
doas*Aug 15
traefikAug 15
nginx*Aug 14
nginx-devel*Aug 14
gitlab-ceAug 13
rubygem-nokogiriAug 13
broAug 09

14 vulnerabilities affecting 83 ports have been reported in the past 14 days

* - modified, not new

All vulnerabilities

Last updated:
2019-08-19 00:24:32

Deleted ports
Sanity Test Failures

NEW Graphs (Javascript)

Calculated hourly:
Port count 37240
Broken 456
Deprecated 145
Ignore 713
Forbidden 3
Restricted 162
Vulnerable 34
Expired 8
Set to expire 115
Interactive 0
new 24 hours 2
new 48 hours16
new 7 days31
new fortnight69
new month120

Servers and bandwidth provided by
New York Internet, iXsystems, and RootBSD
Valid HTML, CSS, and RSS.
Copyright © 2000-2019 Dan Langille. All rights reserved.