James R. Barlow
2625368aed
link: more MANIFEST.in tweaks
2016-08-31 16:28:39 -07:00
James R. Barlow
8ac94879f1
lint: no need to check for DEVNULL; all supported versions have it
2016-08-31 16:28:18 -07:00
James R. Barlow
dd8c0f3756
Merge branch 'master' of https://github.com/jbarlow83/OCRmyPDF
2016-08-31 13:19:46 -07:00
James R. Barlow
010f353a5e
v4.2.3 release notes
2016-08-31 13:19:27 -07:00
James R. Barlow
e0a18edb92
Fix MANIFEST.in, as Python packages require
2016-08-31 13:19:17 -07:00
James R. Barlow
c6f2eea058
Reinstate OCRmyPDF.sh with a deprecation warning
2016-08-31 11:57:02 -07:00
James R. Barlow
bf89e38c69
Add milk.pdf test case
2016-08-31 11:42:21 -07:00
jbarlow83 and GitHub
e1f0640d42
Create issue template
2016-08-31 11:26:29 -07:00
James R. Barlow
71b54035ba
Bug fix issue #89 : trying to perform arithmetic on IndirectObject
...
TypeError: bad operand type for unary -: 'IndirectObject'
2016-08-31 10:25:58 -07:00
James R. Barlow
325cc0beca
Allow test cases to run without installing first
...
As @spwhitton found:
The test suite needs to call "python3 -m ocrmypdf.main" instead of
just "ocrmypdf" because this /usr/bin/ocrmypdf script has not yet been
generated when dh runs the test suite.
---
Seems reasonable to perform in-place testing independent of installation.
Source:
https://sources.debian.net/src/ocrmypdf/4.2.1%2Bgit.20160824.1.5d67cc7-1/debian/patches/0001-patch-test-suite-executable.patch/
2016-08-26 15:23:26 -07:00
James R. Barlow
1a9f09c4d5
Remove OCRmyPDF.sh and its usage in all test cases
2016-08-26 15:18:38 -07:00
James R. Barlow
4fed4e2af3
tests: don't try to pass Unicode arguments on command line on Linux
...
Depends on locale being configured properly, and it's not necessary
to be able to do this.
2016-08-26 15:08:56 -07:00
James R. Barlow
74cc2346a5
pytest.ini: apply patch from Debian to exclude .pc dir
...
https://sources.debian.net/src/ocrmypdf/4.2.1%2Bgit.20160824.1.5d67cc7-1/debian/patches/0003-pytest-exclude-.pc-dir.patch/
From: Sean Whitton <spwhitton@spwhitton.name >
Date: Thu, 12 May 2016 08:21:39 -0700
Subject: pytest exclude .pc dir
Forwarded: not-needed
Patches to the test suite present in .pc confuse pytest.
2016-08-26 15:07:11 -07:00
James R. Barlow
cc7e328358
Improve some documentation for tests
2016-08-26 15:04:08 -07:00
James R. Barlow
d25397e2b0
Add test case for PDFs with masks and stencil masks
2016-08-26 15:03:27 -07:00
James R. Barlow
bc11454e1c
Help text: example of shell pipeline with img2pdf
v4.2.2
2016-08-25 14:58:25 -07:00
James R. Barlow
2025a096c3
Test case for stdin streaming
2016-08-25 14:46:54 -07:00
James R. Barlow
38fe14b108
Make final PDF/A output message less obtuse
2016-08-25 14:46:40 -07:00
James R. Barlow
1b7b2f3695
v4.2.2 release notes, documentation improvements
2016-08-25 14:46:09 -07:00
James R. Barlow
5d67cc76cc
Update 4.2.1 release notes
2016-08-24 14:16:22 -07:00
James R. Barlow
27a3813207
Recover input filename from symlink on error message
...
The recent commit to accept files from stdin broken the feature of
returning the input filename on an error, returning the temp filename
instead, which is confusing.
v4.2.1
2016-08-23 17:38:28 -07:00
James R. Barlow
b06e0bfdcd
Merge branch 'develop'
2016-08-23 16:03:07 -07:00
James R. Barlow
d616f25324
Implement DPI checking for stencil masks
2016-08-23 15:59:34 -07:00
James R. Barlow
b03028e31f
setup.py -> license is MIT
2016-08-19 10:14:33 -07:00
James R. Barlow
e08c42fd3d
Tweak pipeline again
2016-08-09 22:40:29 -07:00
James R. Barlow
16901f7134
Accept input from stdin if input filename is '-'
2016-08-09 15:46:24 -07:00
James R. Barlow
dffceedd85
Update the pipeline image
2016-08-09 15:45:19 -07:00
James R. Barlow
e5541e435c
New test to confirm we can emit JBIG2 with appropriate settings
2016-08-03 11:35:48 -07:00
James R. Barlow
b969aad67b
Tweak release notes
v4.2
v4.2rc1
2016-08-03 03:36:45 -07:00
James R. Barlow
e70387b1af
Add a simple test for image to PDF
2016-08-03 03:35:30 -07:00
James R. Barlow
44f47fba21
PDF/A: handle case of no XMP metadata gracefully
2016-08-03 02:57:25 -07:00
James R. Barlow
02584094a1
Suppress NUL bytes in metadata from input files
2016-08-03 02:47:44 -07:00
James R. Barlow
91d715ac93
Add test cases for --output-type
2016-08-03 02:47:18 -07:00
James R. Barlow
35addb8a33
Complain if Chinese is requested with settings known to not work
...
Should extend test for other Asian languages
2016-08-03 01:29:12 -07:00
James R. Barlow
d32ea8d0dd
Remove dead code from qpdf merge + PyPDF2 metadata patching
...
I tried "qpdf merge + PyPDF2 metadata patching" first. The problem is
that PyPDF2 produces a 1.3 by default and generally I have less
confidence it.
New approach is to stuff the Document Info metadata in the first page
with PyPdf2, cross fingers and use qpdf to merge. It's not quite as
clean and might harm the first page, but it's better than shipping
files produced by PyPDF2.
2016-08-03 01:28:27 -07:00
James R. Barlow
12575d594a
Improve PDF/A validity checking at end
2016-08-03 01:26:16 -07:00
James R. Barlow
0746083301
Fix failing test case - unbound local variable in finally block
2016-08-03 01:00:38 -07:00
James R. Barlow
5c99acf6d1
Experimental change to use qpdf to merge files (disables Ghostscript)
...
All but one tests pass, test_input_file_not_a_pdf
Not sure if PyPDF2 metadata generation will mangle the first page.
2016-08-03 00:56:44 -07:00
James R. Barlow
2b10df7b74
leptonica: note about when it may be safe to drop <1.72 workaround
2016-08-03 00:54:37 -07:00
James R. Barlow
ebe68de4ff
Functional qpdfmerge with PyPDF2 for DocumentInfo block
...
Tests mostly passing. For the moment this is the new default.
Although PyPDF2 produces a PDF-1.3 which will be wrong for some contents
and possible should be repaired with qpdf. Again.
Looks like it could work better to merge PyPDF2 and fix everything
with qpdf.
2016-08-02 16:48:13 -07:00
James R. Barlow
b17c6a146d
Experimental qpdf merging
...
Does not copy /Catalog metadata, but otherwise functional
2016-08-02 02:19:02 -07:00
James R. Barlow
46d837c866
Clarify trusty/precise stuff
2016-08-02 01:29:33 -07:00
James R. Barlow
24856b61e4
Fix typo in readme
2016-08-02 01:29:22 -07:00
James R. Barlow
8d0c6ff616
pyvenv -> python3 -m venv
...
Sadly the Python developers are removing this script
2016-08-02 01:27:50 -07:00
James R. Barlow
0b24f971cd
ocrmyimage: complain about ICC profiles being presumed
2016-08-02 01:22:36 -07:00
James R. Barlow
bc5d3824bd
Don't overload --oversample, use --image-dpi instead for images
2016-07-31 02:09:30 -07:00
James R. Barlow
4356983707
Suppress overly long stack traces on traverse_ruffus_exception
2016-07-31 02:06:44 -07:00
James R. Barlow
2414b79ee6
More cleanup of exception related errors
2016-07-31 01:48:13 -07:00
James R. Barlow
968e1546f0
Refactor image file triage
2016-07-31 01:47:57 -07:00
James R. Barlow
48213c9c3f
Update release notes and readme
2016-07-29 15:25:16 -07:00