James R. Barlow
91a14660b3
Require Pillow >= 10.0.1 and drop shims for older versions
2023-10-04 00:04:28 -07:00
James R. Barlow
10530a8698
Change Ghostscript version skip to fail
...
Reported to fail on earlier versions than the check tested for.
2023-09-26 20:02:52 -07:00
James R. Barlow
d5128c5cf5
Further improvements to image DPI calculation
2023-09-26 00:28:54 -07:00
James R. Barlow
ea36aedb5f
Overhaul version checkers to prefer Version to str
2023-09-25 00:59:44 -07:00
James R. Barlow
8fcf358934
Rename pike local variable to pdf for consistency
2023-09-25 00:22:26 -07:00
James R. Barlow
7018e2b247
Refactor ghostscript error message deduplicating
2023-09-24 20:22:04 -07:00
James R. Barlow
d855f63985
Remove single dispatch version of calculate_downsample
2023-09-23 15:05:04 -07:00
James R. Barlow
146da79c00
Regenerate test cache
2023-09-21 00:24:55 -07:00
James R. Barlow
0388c23ae7
Merge branch 'feature/jbig2thresh' into v15
2023-09-21 00:07:05 -07:00
James R. Barlow
3e1b3ec98d
Merge branch 'feature/fix-raster-dpi-too-high' into v15
2023-09-21 00:05:56 -07:00
James R. Barlow
de2bb5ce8c
Remove tqdm dependency and TqdmConsole
...
Might be too aggressive? No deprecation warning....
2023-09-21 00:05:39 -07:00
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
6b6c34af01
Fix test artifact generated incorrectly
...
Test still passed either way
2023-09-20 15:20:13 -07:00
James R. Barlow
e3c813fc67
Added support for changing color conversion strategy
2023-09-20 01:08:15 -07:00
James R. Barlow
ac2fc49208
Add support for adjusting jbig2 threshold
2023-09-17 14:44:40 -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
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
05ecb6ca46
Resolve Windows errors with -dPDFSTOPONERROR
2023-06-02 02:48:38 -07:00
James R. Barlow
0a7b60cda5
Fix error on metadata block
2023-06-02 02:47:41 -07:00
James R. Barlow
5f211ecf6f
Add test cases for soft errors
2023-06-02 02:47:41 -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
070c9772ce
Add test to confirm we can find formx optimizable images
2023-05-23 00:33:54 -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
cb251a8d03
Merge branches 'feature/better-imageops' and 'feature/cleanup-fitz'
2023-04-16 01:41:46 -07:00
James R. Barlow
b2e6a6431e
Tidy use of pikepdf.open without with
2023-04-15 20:17:44 -07:00
James R. Barlow
9ff1e56bf6
Tidy test_metadata - importorskip idiom
2023-04-15 17:56:13 -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
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
a3c49b8f31
ruff: more lint
2023-04-14 02:19:19 -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
110c75cba2
Use actual TesseractVersion for comparison
2022-10-03 23:28:36 -07:00
James R. Barlow
5afca3f342
Use relaxed version parsing
2022-10-03 22:44:35 -07:00
James R. Barlow
46d0978a09
Update version scripts to support Ghostscript 10.0
2022-10-03 21:59:31 -07:00
James R. Barlow
7bd0e43243
Merge branch 'feature/py311'
2022-09-21 02:42:57 -07:00
James R. Barlow
c2ccc7f29d
Fix test failure due to new logging from pikepdf
2022-09-21 01:00:08 -07:00
James R. Barlow
7da4e6ca7f
Address some linter warnings
2022-09-21 00:05:12 -07:00
James R. Barlow
6dbaebdc0c
Merge branch 'master' into feature/drop-3.7
2022-09-15 23:00:27 -07:00
James R. Barlow
2e937dee9f
Refactor cache manifest creation
2022-08-19 00:19:38 -07:00
James R. Barlow
f4155dca77
tests: convert all uses of multipage.pdf to fixture
2022-08-11 01:13:10 -07:00
James R. Barlow
545cd031b0
Replace public domain graph.pdf and derivates with licensed version
2022-08-11 01:09:00 -07:00