James R. Barlow
c77ae4b34c
Change hookspec to migration parameters for generate_pdf to options object
...
Breaking change for PDF rendering plugins (although none are known to exist).
This provides better separation of Ghostscript specific concerns from
the generic plugin interface.
2023-09-20 15:40:18 -07:00
James R. Barlow
b2cbbf0099
Migrate --pdfa-image-compression argument to being managed by Ghostscript plugin
2023-09-20 15:20:42 -07:00
James R. Barlow
e3c813fc67
Added support for changing color conversion strategy
2023-09-20 01:08:15 -07:00
James R. Barlow
06a5e0c3f6
docs: various updates
2023-08-14 00:13:17 -07:00
James R. Barlow
a6ce35b13a
Add argument to override digital signatures
2023-08-12 01:31:36 -07:00
James R. Barlow
45added738
Implement digital signature detection
2023-08-12 01:20:20 -07:00
James R. Barlow
6e20439c91
Remove oddball log.error/raise Exception() pattern
...
Instead present error message in exception.
2023-08-12 01:02:42 -07:00
James R. Barlow
72e056436c
Add simple signature detection
2023-08-12 00:59:54 -07:00
James R. Barlow
e02ba19097
Modernize pdfinfo usage of pikepdf to Name.X
2023-08-12 00:54:45 -07:00
James R. Barlow
d3b858f994
Improve progress bar presentation/alignment
2023-08-11 01:57:25 -07:00
James R. Barlow
19045c4f21
Replace coloredlogs and tqdm with rich
2023-08-11 01:47:42 -07:00
James R. Barlow
f4d89fe6cc
Fix typo
2023-08-11 01:47:42 -07:00
James R. Barlow
a80e7a127b
Fix some references to master not renamed to main
2023-06-20 01:37:26 -07:00
050dd1f5a8
Allow title, subject, author, and keywords to be unset with an empty string argument ( #1117 )
...
Co-authored-by: Frederick D. Hansen <frederick.hansen@gmail.com >
2023-06-20 01:07:23 -07:00
James R. Barlow
5124daa79f
Fix test failures from preceding
2023-06-19 23:25:31 -07:00
James R. Barlow
7293847da7
Merge branch 'fix_random_ordering_languages' of github.com:abwiersma/OCRmyPDF into abwiersma-fix_random_ordering_languages
2023-06-19 23:21:04 -07:00
Abe
59fd0ac587
Fix randomly ordered languages from set()
2023-06-16 22:14:40 +02:00
James R. Barlow
90619b308c
pipeline: improve documentation
2023-06-12 19:50:23 -07:00
James R. Barlow
ae2f8ed8f1
pipeline: describe page/canvas DPI
2023-06-11 13:40:14 -07:00
James R. Barlow
36d4c2dbbc
Merge commit '6eadd65dfba3f983702087605d582f880efc020b'
2023-06-03 00:23:18 -07:00
James R. Barlow
adbffb7bd9
Merge branch 'feature/soft-error'
2023-06-03 00:23:10 -07:00
James R. Barlow
05ecb6ca46
Resolve Windows errors with -dPDFSTOPONERROR
2023-06-02 02:48:38 -07:00
James R. Barlow
417ee067a2
Remove obsolete universal_newlines check
2023-06-02 02:47:41 -07:00
James R. Barlow
c4649dabef
Clarify optimization ratio
...
Fixes #1070
2023-06-02 01:34:07 -07:00
James R. Barlow
6eadd65dfb
Log deskew angle
...
Closes #1101
2023-06-02 01:12:49 -07:00
James R. Barlow
e8ed510543
Add stop on soft render errors and option to override
2023-06-01 23:49:34 -07:00
James R. Barlow
1bc09045a5
optimize: Add recursion into Form XObjects
2023-05-23 00:07:15 -07:00
James R. Barlow
e46a18dd2f
Refactor searching for optimizable images
2023-05-22 23:42:10 -07:00
James R. Barlow
731b2fc477
Fix interaction with old Python and singledispatch and typing
2023-05-10 00:15:34 -07:00
James R. Barlow
080aa4dbd1
imageops: fix rare assert failure
2023-05-09 23:27:08 -07:00
James R. Barlow
7af5dcd4a4
Improve directions about install other languages
2023-05-05 13:35:27 -07:00
James R. Barlow
fe9f52fbe7
Remove Ghostscript UserUnit warning
...
All supported Ghostscript versions have proper UserUnit support.
2023-04-29 00:42:38 -07:00
James R. Barlow
fcbdeb8dbe
Fix resampling attributeerror when Pillow < 9.1.0
2023-04-25 15:17:45 -07:00
James R. Barlow
3731fdfd72
Add --tesseract-downsample-above X
2023-04-16 01:41:19 -07:00
James R. Barlow
2b30f74fce
Improve imageops
...
Fix issues and add better tests. Require hypothesis.
2023-04-15 17:48:33 -07:00
James R. Barlow
10f4c48e0b
Fix mypy errors
2023-04-14 13:49:14 -07:00
James R. Barlow
37d5c086bb
Fix things not caught by ruff
2023-04-14 13:44:47 -07:00
James R. Barlow
f2fc37b257
Merge feature to downsample very large images
2023-04-14 13:09:15 -07:00
James R. Barlow
a99e40fa84
Update notes about ocrmypdf.ocr usage
2023-04-14 11:54:58 -07:00
James R. Barlow
9ce692a6f1
ruff: further fixes
2023-04-14 02:39:36 -07:00
James R. Barlow
a3c49b8f31
ruff: more lint
2023-04-14 02:19:19 -07:00
James R. Barlow
33b70be7d5
ruff: more fixes, mainly missing docstrings
2023-04-14 02:16:38 -07:00
James R. Barlow
4924b11b6b
Additional ruff fixes
2023-04-14 01:25:16 -07:00
James R. Barlow
9b8d14d16e
Accept most of ruff's delinting
2023-04-14 00:45:34 -07:00
James R. Barlow
b7eb93eb79
Adopt ruff and fix prelim lints
2023-04-14 00:19:17 -07:00
James R. Barlow
1b2849ec0a
Add different timeout control for non-OCR
...
This is mainly to permit the use of --tesseract-timeout 0 as a way of
disabling OCR but still allowing deskew and orientation detection to work.
The better solution will be introducing an explicit argument to
"don't ocr my pdf", but that will take more rework.
2023-04-13 23:59:58 -07:00
James R. Barlow
4f604591b4
Convert to image size based
2023-04-13 23:49:12 -07:00
James R. Barlow
01dc8e23ff
As you were
2023-04-13 23:27:58 -07:00
James R. Barlow
b432770cfc
Add different timeout control for non-OCR
...
This is mainly to permit the use of --tesseract-timeout 0 as a way of
disabling OCR but still allowing deskew and orientation detection to work.
The better solution will be introducing an explicit argument to
"don't ocr my pdf", but that will take more rework.
2023-04-13 22:58:12 -07:00
James R. Barlow
5502fb8d9f
jobcontext: typo
2023-04-13 16:04:46 -07:00