James R. Barlow
fe4725658e
unpaper: fix regex
2024-10-27 14:57:21 -07:00
James R. Barlow
9d042767cc
Attempt to fix matrix and unpaper version error
2024-10-27 14:04:45 -07:00
James R. Barlow
6f755321b8
Ignore unpaper warning message when checking version
...
Fixes #1409
2024-10-27 13:06:30 -07:00
James R. Barlow
706681deb8
Improve some type checks
2024-10-27 12:54:29 -07:00
James R. Barlow
c283cf0a0d
Fix incorrect return value
2024-10-27 12:32:40 -07:00
James R. Barlow
0f82d7223e
Fix some typing issues
2024-10-27 12:31:16 -07:00
James R. Barlow
9a6150ae53
Refactor get_pdfinfo common code
2024-10-27 12:09:33 -07:00
James R. Barlow
fec0948a13
If inside a container, remind user that path is relative to container
2024-10-27 11:55:38 -07:00
James R. Barlow
18b59c57b4
Refactor our tests that check if we are in a container
2024-10-27 11:55:22 -07:00
James R. Barlow
944d99bdc1
Fix PROGRAM_NAME
2024-08-31 01:23:55 -07:00
James R. Barlow
b9dd0a5e3c
Use hatchling and hatch-vcs as build backend
2024-08-31 01:08:23 -07:00
James R. Barlow
b3324c3b4e
Don't assume /Mask is always a Stream
...
Fixes #1377
2024-08-31 00:37:52 -07:00
James R. Barlow
cd910fbf21
Improve "PDF/A conversion failed" message
2024-08-10 01:34:02 -07:00
James R. Barlow
d35d008806
Increase pdfminer's bufsiz to mitigate token splitting issue
...
Fixes #1361
2024-07-31 02:11:47 -07:00
James R. Barlow
f5662d5eb0
Consider Masks and stencil masks when calculating DPI
...
Fixes #1362
2024-07-29 15:46:30 -07:00
James R. Barlow
39010dd255
Handle incompatible jbig2.exe from TeX Live
...
Fixes #1363
2024-07-27 01:09:34 -07:00
James R. Barlow
f974e3b3c1
ghostscript: change input filename order for 10.03.1
...
Ghostscript now expects the pdfa.ps file to precede other files. Fixes #1359 .
2024-07-22 14:56:03 -07:00
James R. Barlow
46b49cc176
Suppress missing jbig2dec warning message
...
Windows users can't resolve it easily.
2024-07-22 14:54:40 -07:00
James R. Barlow
621d6a0b89
Fix image size calculation when SMask dimensions do not match image
...
Closes [Bug]: Ghostscript rasterizing failed #1351
2024-07-16 13:36:48 -07:00
James R. Barlow
980a5472b6
Fix test failures due to 4dde378
2024-07-09 15:54:53 -07:00
James R. Barlow
4dde3786c2
Fix KeyError '/Subtype'
...
Fixes #1350
2024-07-09 14:46:47 -07:00
James R. Barlow
6edf756849
optimize: trap Hifi..Error
...
Fixes [Bug]: NotImplementedError: not sure how to get colorspace #1315
2024-06-30 00:08:51 -07:00
James R. Barlow
4fb1bb4de6
pipeline: fix typo in message
2024-06-30 00:08:31 -07:00
James R. Barlow
0544d06c3d
Fix calculation of image printed area (used in finding weighted DPI for OCR)
...
Fixes #1334
2024-06-21 15:13:51 -07:00
James R. Barlow
2f53b27651
Disable progbar for linearizing when --no-progress-bar set
...
Fixes #1332
2024-06-14 14:18:33 -07:00
James R. Barlow
214a333e2d
Block Tesseract 5.4.0
2024-06-11 14:44:54 -07:00
James R. Barlow
981bbf1105
optimize: add a recursion guard to avoid chasing cyclic form xobjects
2024-06-01 01:52:21 -07:00
James R. Barlow
59f6bc8306
More Tesseract-specific language checks to its plugin
2024-06-01 00:15:50 -07:00
James R. Barlow
653c4ffb45
hocr: accept multiple spaces in bounding boxes
...
Fixes #1322
2024-05-31 16:22:27 -07:00
James R. Barlow
d947ca258e
Prevent issuing equ and osd as languages
2024-05-25 01:17:57 -07:00
James R. Barlow
f3d6387bca
Fix "OCR" progress bar not matching actual progress
2024-05-21 01:35:14 -07:00
James R. Barlow
9a3c5a3f7c
Add progressbar for metadata_fixup
...
Might take time for big files. Pdf.open() potentially is expensive as well, but QPDF doesn't give us progress feedback for that.
Closes Show progress during postprocessing #1313
2024-05-19 00:46:50 -07:00
James R. Barlow
950c700274
Fix Ghostscript PDF/A progressbar not displaying
2024-05-19 00:44:21 -07:00
James R. Barlow
26432c38a9
Raise exception if rotate pages threshold adjusted without --rotate-pages
...
Fixes Make usage of --rotate-pages-threshold clearer #1309
2024-05-18 23:49:27 -07:00
James R. Barlow
28be50136c
hocr: If a line box's coords are invalid, log and error and don't render
...
Addresses [Bug]: Crash on multiple .pdf files #1312
Not actually a fix, but at least it will get us better diagnostics. Appears old Tesseract 4.x generates bad line boxes at times.
2024-05-18 23:32:18 -07:00
James R. Barlow
99c78650b6
Add better error message for PDFs with invalid CTMs
...
Closes #1303
2024-05-07 14:00:30 -07:00
James R. Barlow
9ba4e3ab46
Log unusual exceptions when trying to obtain a version
...
Fixes #1262
2024-04-07 14:39:08 -07:00
James R. Barlow
5fdcb7602b
Make downsampling large images that Tesseract would otherwise error on into default behavior
...
Fixes #1281
2024-04-07 13:43:20 -07:00
James R. Barlow
b4db1b741f
optimize: fix handling of [/FlateDecode none] - type images
...
Closes #1271
2024-04-07 01:44:08 -07:00
James R. Barlow
7a8cc21e31
Add support for sidecar output to io.BytesIO
...
Closes #1252
2024-04-07 01:38:55 -07:00
James R. Barlow
d6342cb8c2
Add heif/heic input image support
2024-04-07 00:33:13 -07:00
James R. Barlow
065bddbc6c
Reformat with ruff format
2024-04-07 00:25:32 -07:00
James R. Barlow
067f429dde
Merge branch 'main' of github.com:ocrmypdf/OCRmyPDF
2024-03-26 15:34:00 -07:00
Daniel Lovegrove and GitHub
6895c2d70f
Fix Broken Documentation Links ( #1275 )
...
* Update URL for PDFMARK documentation
For reference, here is a link to the old PDF:
https://web.archive.org/web/20190806035303/https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdfmark_reference.pdf
It appears Adobe converted the PDF into a webpage-based document, the
wording seems to almost identical b/w the PDF and the website.
* Fix cross-references to JBIG2 page
* Fix links for Fedora + Arch + HEAD revision install
Fedora 39 has been released, and the package tracker no longer includes
a release overview for Fedora 37 hence why it was removed here.
2024-03-22 14:38:52 -07:00
James R. Barlow
686481982a
Fix naming of hOCR rendered files
2024-03-22 13:27:20 -07:00
James R. Barlow
8a747f005a
pixels -> megapixels
...
Fixes #1265
2024-02-29 15:31:07 -08:00
James R. Barlow
3a3635f7f9
Python 3.10 cleanup, manual fixes
2024-02-14 12:48:17 -08:00
James R. Barlow
6a746a1cbb
ruff linting/Python 3.10 cleanup
2024-02-14 12:41:51 -08:00
James R. Barlow
353b34e695
Merge branch 'feature/pageboxes'
2024-02-12 01:41:56 -08:00
James R. Barlow
7d63355c3c
Use hocr renderer for LTR languages
2024-02-12 01:41:41 -08:00