James R. Barlow
079c162a96
Ensure sidecar is not input or output file
2021-03-05 00:29:42 -08:00
James R. Barlow
25c8c4656f
Fix error message change
v11.7.1
2021-03-03 01:02:59 -08:00
James R. Barlow
ffcae9a1a0
v11.7.1 release notes
2021-03-03 00:46:35 -08:00
James R. Barlow
6e71fe1186
Clarify --unpaper-args errors
2021-03-03 00:44:21 -08:00
James R. Barlow
0885799010
Update docs for conda
...
Closes #743
2021-03-03 00:43:45 -08:00
James R. Barlow
8ffc99f648
optimize: log errors more loudly
2021-03-03 00:43:40 -08:00
James R. Barlow
2261c51eff
Reactivate pngquant on windows
v11.7.0
2021-02-26 01:19:03 -08:00
James R. Barlow
5c470778a3
v11.7.0 release notes
2021-02-26 00:29:52 -08:00
James R. Barlow
4124889f36
Don't generate PDF/A-1b with object streams
...
Acrobat insists that PDF/A-1b should not have object streams.
Other programs like veraPDF disagree with this restriction, but
we can accommodate Acrobat so we will.
Also add more tests around this.
2021-02-26 00:23:57 -08:00
James R. Barlow
a23c22b0e8
helpers: tidy check_pdf
2021-02-25 22:51:53 -08:00
James R. Barlow
dd1f5f7215
pyproject: black doesn't like py39 yet
2021-02-25 16:10:20 -08:00
Dima Kuznetsov and GitHub
5e2206bae7
Allow --sidecar along --pages ( #735 )
2021-02-19 16:55:35 -08:00
James R. Barlow
079ee86d43
pyproject: also target py39
2021-02-18 01:48:56 -08:00
James R. Barlow
3692868004
v11.6.2 release notes
v11.6.2
2021-02-15 01:48:14 -08:00
James R. Barlow
064f935699
Fix page rotation regression
...
Page size fixes in commit b26749 did accounted for a "kept" rotation,
but not a corrected rotation.
Fixes #730 .
2021-02-15 01:47:09 -08:00
James R. Barlow
8770fff968
tests: remove unreliable/incomplete test
2021-02-15 01:05:08 -08:00
James R. Barlow
82de78b6b0
v11.6.1 release notes
v11.6.1
2021-02-14 01:51:26 -08:00
James R. Barlow
2a52c6dec2
optimize: skip images with unusually small dimensions
...
They're unlikely to be handled well by our recompressors. It seems
that JBIG2 cannot handle very small widths.
Fixes #732
2021-02-14 01:43:25 -08:00
James R. Barlow
2898879be7
docker-compose: fix typo
2021-02-14 01:43:06 -08:00
James R. Barlow
a9ad805347
optimize: Remove shim for unsupported pikepdf version
2021-01-31 00:08:20 -08:00
James R. Barlow
46d0632fe2
v11.6.0 release notes
v11.6.0
2021-01-26 01:47:49 -08:00
James R. Barlow
ef1e7a814e
Delinting
2021-01-26 01:45:04 -08:00
James R. Barlow
1084724937
docs: improve API docs
2021-01-26 01:40:40 -08:00
James R. Barlow
ecb0109d79
docs: fix rst formatting error
2021-01-26 01:29:45 -08:00
James R. Barlow
504d5776d2
Refactor plugin manager to eliminate callback
2021-01-24 23:42:40 -08:00
James R. Barlow
ee23976858
Re-sequence plugin installation
2021-01-24 23:42:28 -08:00
James R. Barlow
f559316881
Insert setuptools plugins with ocrmypdf prefix
2021-01-24 23:42:09 -08:00
James R. Barlow
084610c242
Automate insertion of builtin modules
2021-01-24 23:41:50 -08:00
James R. Barlow
9ff627472b
Update pre-commit
2021-01-24 23:40:59 -08:00
James R. Barlow
956310d1ec
Import PageContext, PdfContext since they are referenced in pluginspec
2021-01-24 02:04:47 -08:00
James R. Barlow
1a982da442
tests: confirm that we produce pdf when optimization is off
2021-01-24 01:54:25 -08:00
James R. Barlow
4879a1f0de
docs: no MS Store Python
2021-01-18 13:27:31 -08:00
James R. Barlow
ce66bcc9c8
github: Ask how ocrmypdf was installed
2021-01-10 02:35:24 -08:00
James R. Barlow
1ebf3144af
v11.5.0 release notes
v11.5.0
2021-01-09 16:48:40 -08:00
James R. Barlow
7a1cccbc4e
Fallback to LeptonicaErrorTrap_Redirect if ffi.callback fails
...
Might fix issue #709 , Apple silicon support.
2021-01-09 16:47:11 -08:00
James R. Barlow
ebacff1b39
tests: Fix debug logging test
2021-01-09 16:41:57 -08:00
James R. Barlow
c7c447be66
Add test for configure_debug_logging
...
Since we can't directly test it
2021-01-09 16:02:12 -08:00
James R. Barlow
91aa175602
Consider text when determining page raster DPI
...
Previously if we found vectors of any sort on a page, we would bump
the DPI up to 400. We did nothing
about pages with text. As a result,
pages with a low image resolution
and printable text would have the text downgraded to image
resolution when --force-ocr was used.
We don't try to determine if the text is visible or invisible OCR text, since
that is a slower test. --redo-ocr would improve such cases anyway.
2021-01-09 16:01:49 -08:00
James R. Barlow
b267494e4a
Create raster PDF pages to match input page size
...
Previously we produced a raster image, then multiplied image width
by DPI to get the page size. However if there is rounding the
page size may not match exactly. In this modified approach we
constrain the page size to match.
2021-01-08 15:10:43 -08:00
James R. Barlow
f687180ecc
tests: tidy pdfinfo
2021-01-08 15:04:52 -08:00
James R. Barlow
6f4b38b103
ghostscript: tidy comments
2021-01-08 00:41:03 -08:00
James R. Barlow
d32324859c
v11.4.5 release notes
v11.4.5
2021-01-06 11:42:28 -08:00
James R. Barlow
48222b87b5
Merge branch 'master' of github.com:jbarlow83/OCRmyPDF
2021-01-06 03:59:40 -08:00
62e5edc72b
fix unclosed file warnings. ( #710 )
...
Co-authored-by: Jonas Winkler <jonas.winkler@jpwinkler.de >
2021-01-06 03:59:28 -08:00
James R. Barlow
2846d46bb8
Remove .coveragerc and fold into setup.cfg
2021-01-06 03:58:18 -08:00
James R. Barlow
47ef1914d4
v11.4.4 release notes
v11.4.4
2021-01-01 01:39:24 -08:00
James R. Barlow
df157552f3
Make ocrmypdf.ocr take a threading lock
2021-01-01 01:37:09 -08:00
James R. Barlow
0b3a526049
Partial fix crash on 'userunit' None ( #700 )
...
Our method of getting data from pdfminer would silently consume a StopIteration
if pdfminer returned no processed pages, leading to odd error message.
We improve an error from pdfminer properly, and returning a more
descriptive error of our own.
It would be possible for ocrmypdf to repair the file before sending it to
pdfminer, but this seems to be rare enough that we won't do that yet.
2021-01-01 01:11:32 -08:00
James R. Barlow
1e80d412fa
tesseract: fix typing of some optional arguments
2021-01-01 00:46:00 -08:00
James R. Barlow
df6e106203
concurrent: simplify results loop
2021-01-01 00:44:46 -08:00