Compare commits

...
7 Commits
Author SHA1 Message Date
James R. Barlow 1f40a70554 Use qpdf 8.0.2 backport, force old pytest-timeout to fix build 2018-06-23 03:14:18 -07:00
James R. Barlow e14ffbf03f v6.2.1 release notes 2018-06-23 03:01:54 -07:00
James R. Barlow 25a1dde57c Fix recent versions of tesseract not registering as textonly_pdf
This change happened sometime after the 4.0.0-beta1 release in
Ubuntu 18.04
2018-06-23 02:59:22 -07:00
jbarlow83andGitHub 1d10eac764 Add wiki link to issue template
[ci skip]
2018-06-06 12:59:59 -07:00
jbarlow83andGitHub 3f868118cd Remove gpg
[ci skip]
2018-06-06 12:58:02 -07:00
Fabian Rodriguezandjbarlow83 c7cf041e4a Fixed language option example (French) (#266)
Replace fre to fra.
2018-05-10 00:10:27 -07:00
James R. Barlow 38ab03655b Restore unpaper
It's a suggested/recommended dep not required in Deb/Ubu.
2018-05-06 21:36:12 -07:00
8 changed files with 42 additions and 49 deletions
+1
View File
@@ -4,6 +4,7 @@ FROM ubuntu:18.04
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
ocrmypdf \ ocrmypdf \
unpaper \
tesseract-ocr-eng \ tesseract-ocr-eng \
tesseract-ocr-fra \ tesseract-ocr-fra \
tesseract-ocr-deu \ tesseract-ocr-deu \
+1 -8
View File
@@ -2,11 +2,4 @@ Please include the command line and a test file with your issue report.
If possible, please use a test file that we can include in future test cases (no personal information, no copyrighted material). If possible, please use a test file that we can include in future test cases (no personal information, no copyrighted material).
If you wish to encrypt a test file so that only the maintainer of OCRmyPDF can view it, you may use: If you wish to encrypt a test file for the OCRmyPDF maintainer only, see the [Wiki](https://github.com/jbarlow83/OCRmyPDF/wiki).
```bash
gpg --recv-keys 4434eb74c4a35f7f --keyserver pgp.mit.edu
gpg --output test.pdf.gpg --encrypt --receipient 4434eb74c4a35f7f test.pdf
```
+2
View File
@@ -8,6 +8,7 @@ tasks.py
.ruffus_history.sqlite .ruffus_history.sqlite
.idea/ .idea/
.pytest_cache/ .pytest_cache/
.pylintrc
# Package building # Package building
*.egg-info/ *.egg-info/
@@ -42,3 +43,4 @@ pdfbox-app*.jar
.vscode/ .vscode/
IDEAS IDEAS
_Dockerfile.local _Dockerfile.local
/scratch.py
+2 -13
View File
@@ -12,7 +12,8 @@ sudo apt-get install -y \
libavformat56 \ libavformat56 \
libavcodec56 \ libavcodec56 \
libavutil54 \ libavutil54 \
libffi-dev libffi-dev \
qpdf
sudo add-apt-repository ppa:alex-p/tesseract-ocr -y sudo add-apt-repository ppa:alex-p/tesseract-ocr -y
@@ -28,15 +29,3 @@ pip install --upgrade pip
mkdir -p packages mkdir -p packages
wget -q 'https://www.dropbox.com/s/vaq0kbwi6e6au80/unpaper_6.1-1.deb?raw=1' -O packages/unpaper_6.1-1.deb wget -q 'https://www.dropbox.com/s/vaq0kbwi6e6au80/unpaper_6.1-1.deb?raw=1' -O packages/unpaper_6.1-1.deb
sudo dpkg -i packages/unpaper_6.1-1.deb sudo dpkg -i packages/unpaper_6.1-1.deb
if [ ! -f /usr/local/bin/qpdf ]; then
export QPDF_RELEASE='https://github.com/qpdf/qpdf/releases/download/release-qpdf-8.0.2/qpdf-8.0.2.tar.gz'
mkdir qpdf
wget -q $QPDF_RELEASE -O - | tar xz -C qpdf --strip-components=1
cd qpdf/
export PATH="/usr/local/opt/ccache/libexec:$PATH"
./configure --prefix=/usr
make -j 2
sudo make install
cd ..
fi
+2 -2
View File
@@ -65,8 +65,8 @@ By default OCRmyPDF assumes the document is English.
.. code-block:: bash .. code-block:: bash
ocrmypdf -l fre LeParisien.pdf LeParisien.pdf ocrmypdf -l fra LeParisien.pdf LeParisien.pdf
ocrmypdf -l eng+fre Bilingual-English-French.pdf Bilingual-English-French.pdf ocrmypdf -l eng+fra Bilingual-English-French.pdf Bilingual-English-French.pdf
Language packs must be installed for all languages specified. See :ref:`Installing additional language packs <lang-packs>`. Language packs must be installed for all languages specified. See :ref:`Installing additional language packs <lang-packs>`.
+7
View File
@@ -9,6 +9,13 @@ The OCRmyPDF package itself does not contain a public API, although it is fairly
find: [^`]\#([0-9]{1,3})[^0-9] find: [^`]\#([0-9]{1,3})[^0-9]
replace: `#$1 <https://github.com/jbarlow83/OCRmyPDF/issues/$1>`_ replace: `#$1 <https://github.com/jbarlow83/OCRmyPDF/issues/$1>`_
v6.2.1
------
- Fix recent versions of Tesseract (after 4.0.0-beta1) not being detected as supporting the ``sandwich`` renderer (`#271 <https://github.com/ppjbarlow83/OCRmyPDF/issues/271>`_).
v6.2.0 v6.2.0
------ ------
+2 -1
View File
@@ -73,7 +73,8 @@ def has_textonly_pdf():
""" """
args_tess = [ args_tess = [
'tesseract', 'tesseract',
'--print-parameters' '--print-parameters',
'pdf'
] ]
params = '' params = ''
try: try:
+1 -1
View File
@@ -2,4 +2,4 @@ pytest >= 3.2
pytest-helpers-namespace pytest-helpers-namespace
pytest-xdist pytest-xdist
pytest-cov pytest-cov
pytest-timeout pytest-timeout == 1.2.1