Ali MJ Al-Nasrawy
6d2d870711
Fix "Scanning contents" progress bar with --redo-ocr
2024-12-04 18:45:46 +03:00
James R. Barlow
d303b42c86
Add documentation to PdfMinerState
2024-10-27 22:01:36 -07:00
James R. Barlow
f77f701a50
Fix quadratic time performance regression on scanning pages
2024-10-27 21:57:53 -07:00
James R. Barlow
706681deb8
Improve some type checks
2024-10-27 12:54:29 -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
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
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
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
99c78650b6
Add better error message for PDFs with invalid CTMs
...
Closes #1303
2024-05-07 14:00:30 -07: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
3b9d4b7f0a
Attempt to deal with oddball mediaboxes
2024-02-11 15:34:54 -08:00
James R. Barlow
11f53fe9a9
First cut at propagating page boxes
...
This would fix the immediate issue, but does not address an offset mediabox.
2024-02-11 15:34:54 -08:00
James R. Barlow
9898904be7
Fix pikepdf PdfMatrix deprecation warning; v15.4.3 release notes
2023-11-15 20:27:16 -08:00
James R. Barlow
d2297b39d0
info: clarify ICC -> components checking
2023-10-24 00:54:31 -07:00
James R. Barlow
e4cd081d4d
info: clarify pageinfo context management
2023-10-24 00:54:31 -07:00
James R. Barlow
d2dbea6cf8
Reorganize progress bars so they can be typed properly
2023-10-24 00:54:31 -07:00
James R. Barlow
46a279a49a
Improve passing of arguments to workers
...
The executor system was built around passing only a single
argument to workers, which was
always PageContext. For other tasks, all actual arguments were packed in
a tuple, which meant we needed intermediate functions to unpack the
tuple.
The situation is now rationlized and resembles how Python handles
argument passing to familiar multiprocessing tools.
2023-10-24 00:54:31 -07:00
James R. Barlow
990b462a94
Fix coverage settings and cover semfree
2023-10-24 00:54:31 -07:00
James R. Barlow
eb3a51e33a
Prefer pikepdf's newer Page.mediabox accessor over .MediaBox
2023-10-24 00:54:31 -07:00
James R. Barlow
4dbc5e1dba
Fix some typing issues
2023-10-24 00:54:31 -07:00
James R. Barlow
6127f7abd6
tqdm_kwargs to progress_kwargs
2023-10-24 00:54:31 -07:00
James R. Barlow
53c953a561
Fix use_threads logic for get_pdfinfo
...
Some debug code was level in place that forced pdfinfo to run with only
one worker when --use-threads was issued. That is how it ought to be,
since threaded pdfinfo workers just fight over the GIL and there is no
sense in parallelizing them.
Also, the user's --use-threads or --no-use-threads would be ignored in
the case of pdfinfo. By setting max_workers=1 we disabled worker processes.
This fixes how that decision is made (putting it in the relevant code, which
knows its constraints) and allows the user to influence the
thread/process decision again.
2023-10-24 00:54:30 -07:00
James R. Barlow
8991d2cb33
Refactor main pipeline and start hocr pipeline
2023-10-24 00:52:31 -07:00
James R. Barlow
93fda0dd00
Detect and warn about Tagged PDFs
2023-10-12 01:03:09 -07:00
James R. Barlow
7172817cd6
Replace ExitStack with contextmanager
2023-10-02 16:52:06 -07:00
James R. Barlow
364799fc3e
Fix typing for pdinfo.layout and modernize
...
Also changed handling of undefined chars to be more Liskov-consistent with parent class.
2023-10-01 01:18:22 -07:00
James R. Barlow
113a6b45bd
ruff autofixes (mostly typing.* -> collections.abc.*)
2023-10-01 00:02:53 -07:00
James R. Barlow
d5128c5cf5
Further improvements to image DPI calculation
2023-09-26 00:28:54 -07:00
James R. Barlow
67ed29dcea
Fix incorrect printed_area calculation
2023-09-21 00:02:02 -07:00
James R. Barlow
ac3aa67d8a
Revise to PageResolutionProfile
2023-09-20 16:58:59 -07:00
James R. Barlow
5902fe45c1
Rename Resolution.mean to to_scalar
2023-09-20 16:58:59 -07:00
James R. Barlow
78981641f0
Introduce new functions to calculate DPI exceptions
2023-09-20 16:58:59 -07:00
James R. Barlow
a6ce35b13a
Add argument to override digital signatures
2023-08-12 01:31:36 -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
9ce692a6f1
ruff: further fixes
2023-04-14 02:39:36 -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
Frederick Robinson and GitHub
aa73e3c69f
handle case when candidate is None ( #1066 )
2023-03-17 14:27:27 -07:00
James R. Barlow
90b2119ad3
pdfinfo: skip null FormX entries
2023-01-01 16:58:14 -08:00
James R. Barlow
7da4e6ca7f
Address some linter warnings
2022-09-21 00:05:12 -07:00
James R. Barlow
f37decf3b3
Remove old pdfminer.six shim
2022-09-20 23:02:17 -07:00
James R. Barlow
1709e23701
pipeline: add further typing details
2022-09-19 20:19:15 -07:00
James R. Barlow
80ed2117cc
Change to SPDX license tracking
2022-07-28 01:10:07 -07:00
James R. Barlow
dc6f1a266a
Modernize type annotations
2022-07-23 00:39:24 -07:00