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
James R. Barlow
f385772d21
Refactor "is this an iterable that's not a string?" test
2016-07-29 15:25:02 -07:00
James R. Barlow
d257c83520
Most tests were failing at split_pages()
...
It seems that ruffus sometimes decides to send a ['inputfile.pdf']
instead of a bare string.
2016-07-29 14:59:17 -07:00
James R. Barlow
7b72ffec4f
ocrmyimage: better handling of missing/invalid DPI
2016-07-29 14:38:07 -07:00
James R. Barlow
757f6826dc
ocrmyimage - Attempt conversion to PDF if input file is not a PDF
...
First cut.
May have broken ruffus errors again too.
2016-07-29 14:03:19 -07:00
James R. Barlow
5df83a0d30
Travis: use Python 3.5 too
2016-07-29 13:31:40 -07:00
James R. Barlow
d70e3d3753
ruffus exceptions: for clarity only, don't iterate strings
...
It's a good habit to ensure any iterator test is explicit about
allowing or disallowing strings.
2016-07-29 13:31:24 -07:00
James R. Barlow
0dfceedcfb
Remove old OCRmyPDF 2.x from release notes; update 4.2 notes
2016-07-29 03:08:59 -07:00
James R. Barlow
2c30f4bfc5
Travis: build partly working on trusty; tweak requirements again
...
The build is #122
https://travis-ci.org/jbarlow83/OCRmyPDF/builds/148255615
Errors seem to be related to either Ghostscript or leptonica? Maybe
-dSAFER?
2016-07-29 03:08:01 -07:00
James R. Barlow
9e7fb52b47
Travis: add PPA to support unpaper
2016-07-29 01:57:12 -07:00
James R. Barlow
bb5fd38e38
Remove additional PPA's and try again
2016-07-29 01:47:56 -07:00
James R. Barlow
7c8cf5cfa2
Try travis-trusty
...
This removes some backports for packages that Ubuntu trusty offers but
for which Ubuntu precise needed help.
2016-07-29 01:44:57 -07:00
James R. Barlow
fef35e4eb2
Fix handling of DPI for rare case of JPEG recompression after deskew/clean
...
This test is exercised by page 4 of multipage.pdf. If all images are
JPEGs, and one of deskew/clean removes DPI information, make sure that
we can get the right information back and that the DPI stays square.
2016-07-29 01:34:52 -07:00
James R. Barlow
8f77576dc4
Fix non-square image resolution for "hocr" case; use img2pdf 0.2.1
...
Tesseract renderer not immediately fixable.
2016-07-28 16:43:51 -07:00
James R. Barlow
b3fcf24a26
Refactor DPI: fix regressions in test suite
...
Some called functions are particular about the data format of DPI and
don't like to deal with the Decimal() returned by PyPDF2. Convert to
float and int where needed.
2016-07-28 00:19:32 -07:00
James R. Barlow
16e4d342d2
Bug fix: --force-ocr should still run on pages with no images
...
Useful for people who want to reprocess text.
This also requires --oversample because DPI is undefined. To be fixed
in next commit.
2016-07-27 15:06:49 -07:00
James R. Barlow
8458a51860
Tighten requirements and dependencies
2016-07-27 14:47:59 -07:00
James R. Barlow
636d1903b3
Ghostscript: do raster output with -dSAFER
...
-dSAFER does not work when rendering PDF/A, because that needs to load
the ICC file, and -dSAFER prevents access to external files.
2016-07-27 00:54:40 -07:00
jbarlow83 and GitHub
514efa36fc
Readme: Add table of contents, brew install tesseract --with-language packs
v4.1.4
2016-07-24 11:21:46 -07:00
James R. Barlow
bd48f40d3d
v4.1.4 release notes
v4.1.4rc1
2016-07-17 00:35:06 -07:00
James R. Barlow
c02dbc809a
Merge commit '68cf9cbd87c188823027f9d1bfe9029017e7281f' into develop
2016-07-17 00:29:48 -07:00
James R. Barlow
410111d6fb
Bug fix: Monochrome images with ICC treated as full color images
...
Issue #79 .
User submitted PDF with ICC profile attached to the monochrome image
in the input file, which is not common but useful for PDFs that want to
define how light the paper is or how dark the black is. The code was
written to assume unusual images are full color unless it can prove
otherwise. Handle this simple case. Other ICC cases should be tested.
2016-07-17 00:29:32 -07:00
jbarlow83 and GitHub
68cf9cbd87
.rst: add code-block markup
2016-07-05 14:03:55 -07:00
jbarlow83 and GitHub
c9b2540d9d
Fix some .rst formatting errors
2016-07-05 13:48:19 -07:00
jbarlow83 and GitHub
1bacf35a2c
Update license information for encrypted_algo4.pdf
2016-06-24 14:25:15 -07:00
jbarlow83 and GitHub
8aef0d9277
Merge pull request #76 from Jmuccigr/patch-2
...
Adding explicit reference to help
2016-06-24 14:21:23 -07:00
John Muccigrosso and GitHub
b2fa8645ba
Adding explicit reference to help
2016-06-24 13:44:12 -05:00
James R. Barlow
c96823a648
v4.1.3 release notes
v4.1.3
v4.1.3rc1
2016-06-23 13:47:56 -07:00
James R. Barlow
3807b7d655
Merge branch 'feature/leptfun' into develop
2016-06-23 13:45:35 -07:00
James R. Barlow
a45505cf1d
Fix order of operations in matrix multiplication
...
Issue #73 . The order of operations happens to not matter for scaling
but does matter for translation. We only need scaling to find the DPI,
so the error was not noticed. Mainly useful to other uses of this
library.
2016-06-23 13:36:23 -07:00
James R. Barlow
b4a734fc0d
Test case for "algorithm 4" test
...
Algorithm 4 -> PDF version 1.6
2016-06-23 13:21:26 -07:00
James R. Barlow
bbd02926e1
Add helpful error message for PDFs that use algorithm 4
2016-06-23 13:13:17 -07:00
jbarlow83 and GitHub
5022ded276
Update Windows directions
2016-06-16 15:15:46 -07:00
James R. Barlow
c7612152ef
leptonica: pillow interop
2016-06-06 23:55:23 -07:00
James R. Barlow
af91642cd1
lept: fix __getstate/__setstate
2016-06-06 23:55:23 -07:00
James R. Barlow
9c66334c38
Leptonica - ortho rotate, background norm
2016-06-06 23:55:23 -07:00
James R. Barlow
8d79b94b84
cpix -> _pix
2016-06-06 23:55:23 -07:00
James R. Barlow
d7f60b96c1
More leptonica functions for page manipulation
2016-06-06 23:55:23 -07:00
James R. Barlow
b964999427
Update filename references from sRGB_IEC to sRGB
v4.1.2
2016-05-10 21:58:04 -07:00
James R. Barlow
3473345ea6
Replace sRGB_IEC with MIT license compatible sRGB
...
New file is from Debian package icc-profiles-free
v4.1.1
2016-05-10 21:48:32 -07:00
James R. Barlow
349ec5c81f
Provide more helpful error message if pypdf can't merge pages
2016-04-28 14:02:12 -07:00
James R. Barlow
ff78d7c56c
v4.1 release notes
v4.1
v4.1rc1
2016-04-28 00:46:16 -07:00
James R. Barlow
ff092c8629
Fix race condition between these tests when run in parallel
2016-04-28 00:39:15 -07:00
James R. Barlow
fe14cb57c0
Fix ruffus exception output
...
I found this issue in ruffus 2.6.3
https://github.com/bunbun/ruffus/issues/65
also discussed here
https://github.com/bunbun/ruffus/pull/67
ruffus 2.6.3 RethrownJobError don't follow the normal conventions and
so its exception causes problems when they cross process boundaries.
This change carefully examines the various forms of ruffus exception
objects that can appear in 2.6.3 and parses them more carefully. It
also removes any direct posting of the exception to the logger because
this triggers another serializing of the exception object, mutating it
further.
2016-04-28 00:38:50 -07:00
James R. Barlow
507fbc01d5
Refactor _find_page_images
2016-04-27 13:13:43 -07:00
James R. Barlow
325479e5be
Fix test failure: inline images with multiple image filters specified
2016-04-27 13:09:41 -07:00