From 437c2357385ce70ac6cf62aae5095142796d1a3c Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 11 Dec 2019 13:13:51 -0800 Subject: [PATCH] v9.2.0 release notes and docs --- .travis.yml | 33 ++++++++++++++++----------------- README.md | 8 +++++--- docs/installation.rst | 16 ++++++++++++---- docs/release_notes.rst | 20 ++++++++++++++++++++ 4 files changed, 53 insertions(+), 24 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4aa53def..1f05bc7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -146,20 +146,19 @@ script: - tesseract --version - qpdf --version - pytest -n auto - -deploy: - # release for main pypi - # 3.7 is considered the build leader and does the deploy, otherwise there is - # a race and all versions will try to deploy - # OTOH if we ever need separate binary wheels then each version needs its - # own deploy - - provider: pypi - user: ocrmypdf-travis - password: - secure: "DTFOmmNL6olA0+yXvp4u9jXZlZeqrJsJ0526jzqf4a3gZ6jnGTq5UI6WzRsslSyoMMfXKtHQebqHM6ogSgCZinyZ3ufHJo8fn9brxbEc2gsiWkbj5o3bGwdWMT1vNNE7XW0VCpw87rZ1EEwjl4FJHFudMlPR1yfU5+uq0k0PACo=" - distributions: "sdist bdist_wheel" - on: - branch: master - tags: true - condition: $TRAVIS_PYTHON_VERSION == "3.7" && $TRAVIS_OS_NAME == "linux" - skip_upload_docs: true +# deploy: +# # release for main pypi +# # 3.7 is considered the build leader and does the deploy, otherwise there is +# # a race and all versions will try to deploy +# # OTOH if we ever need separate binary wheels then each version needs its +# # own deploy +# - provider: pypi +# user: ocrmypdf-travis +# password: +# secure: "DTFOmmNL6olA0+yXvp4u9jXZlZeqrJsJ0526jzqf4a3gZ6jnGTq5UI6WzRsslSyoMMfXKtHQebqHM6ogSgCZinyZ3ufHJo8fn9brxbEc2gsiWkbj5o3bGwdWMT1vNNE7XW0VCpw87rZ1EEwjl4FJHFudMlPR1yfU5+uq0k0PACo=" +# distributions: "sdist bdist_wheel" +# on: +# branch: master +# tags: true +# condition: $TRAVIS_PYTHON_VERSION == "3.7" && $TRAVIS_OS_NAME == "linux" +# skip_upload_docs: true diff --git a/README.md b/README.md index e5f1d319..c60bc683 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ OCRmyPDF -[![Travis build status][travis]](https://travis-ci.org/jbarlow83/OCRmyPDF) [![PyPI version][pypi]](https://pypi.org/project/ocrmypdf/) ![Homebrew version][homebrew] ![ReadTheDocs][docs] ![Python versions][pyversions] +[![Build Status][azure]](https://dev.azure.com/jim0585/ocrmypdf/_build/latest?definitionId=2&branchName=master) [![PyPI version][pypi]](https://pypi.org/project/ocrmypdf/) ![Homebrew version][homebrew] ![ReadTheDocs][docs] ![Python versions][pyversions] + +[azure]: https://dev.azure.com/jim0585/ocrmypdf/_apis/build/status/jbarlow83.OCRmyPDF?branchName=master [travis]: https://travis-ci.org/jbarlow83/OCRmyPDF.svg?branch=master "Travis build status" @@ -48,7 +50,7 @@ For details: please consult the [documentation](https://ocrmypdf.readthedocs.io/ Motivation ---------- -I searched the web for a free command line tool to OCR PDF files on Linux/UNIX: I found many, but none of them were really satisfying. +I searched the web for a free command line tool to OCR PDF files: I found many, but none of them were really satisfying. - Either they produced PDF files with misplaced text under the image (making copy/paste impossible) - Or they did not handle accents and multilingual characters @@ -63,7 +65,7 @@ I searched the web for a free command line tool to OCR PDF files on Linux/UNIX: Installation ------------ -Linux, UNIX, and macOS are supported. Windows is not directly supported but there is a Docker image available that runs on Windows. +Linux, Windows, macOS and FreeBSD are supported. Docker images are also available. Users of Debian 9 or later or Ubuntu 16.10 or later may simply diff --git a/docs/installation.rst b/docs/installation.rst index 3398ef94..8c2f95eb 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -442,19 +442,21 @@ Installing on Windows production-ready solution, use Windows Subsystem for Linux or a Docker image. +.. note:: + + Administrator privileges will be required for some of these steps. + You must install the following for Windows: * Python 3.7 (64-bit recommended) * Tesseract 4.0 or later * Ghostscript 9.50 or later -* QPDF 9.0.2 or later You can install these with the Chocolatey package manager: * ``choco install python3`` * ``choco install --pre tesseract`` * ``choco install ghostscript`` -* ``choco install qpdf`` Also consider adding: @@ -463,8 +465,14 @@ Also consider adding: Windows 10 64-bit and 64-bit versions of applications are recommended. Earlier versions of Windows and 32-bit versions of these programs are not tested. -Modify your ``PATH`` environment variable so that Tesseract, Ghostscript and QPDF -executables on the ``PATH``. +Modify your ``PATH`` environment variable so that Tesseract and Ghostscript, and +any optional executables can be found. You can enter it in the command line +or `follow these directions `_ +to make the change persistent and system-wide. + +You may then use pip to install ocrmypdf: + +* ``pip install ocrmypdf`` Installing on Windows Subsystem for Linux ========================================= diff --git a/docs/release_notes.rst b/docs/release_notes.rst index 9f1a23b5..949a6cc3 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -13,6 +13,26 @@ Note that it is licensed under GPLv3, so scripts that ``import ocrmypdf`` and are released publicly should probably also be licensed under GPLv3. +v9.2.0 +====== + +- Native Windows is now supported. +- Continuous integration moved to Azure Pipelines. +- Improved test coverage and speed of tests. +- Fixed an issue where a page that was originally a JPEG would be saved as a + PNG, increasing file size. This occurred only when a preprocessing option + was selected along with ``--output-type=pdf`` and all images on the original + page were JPEGs. Regression since v7.0.0. +- OCRmyPDF no longer depends on the QPDF executable ``qpdf`` or ``libqpdf``. + It uses pikepdf (which in turn depends on ``libqpdf``). Package maintainers + should adjust dependencies so that OCRmyPDF no longer calls for libqpdf on + its own. For users of Python binary wheels, this change means a separate + installation of QPDF is no longer necessary. This change is mainly to + simplify installation on Windows. +- Fixed a rare case where log messages from Tesseract would be discarded. +- Fixed incorrect function signature for pixFindPageForeground, causing + exceptions on certain platforms/Leptonica versions. + v9.1.1 ======