James R. Barlow
015b53ae30
feat: discard stale embedded text search index when rewriting PDF
...
Adobe Acrobat can embed a proprietary full-text search index in the
document catalog at /Root/PieceInfo/SearchIndex. Only Acrobat reads it;
other viewers ignore it and search the text on the fly. Any change to a
PDF invalidates the index, so once OCRmyPDF rewrites the document the
retained index is stale and returns incorrect search results in Acrobat.
OcrGrafter.finalize() now discards it before saving (covering both the
OCR and hOCR pipelines), preserving any other PieceInfo owner data and
dropping an empty PieceInfo. Modern viewers rebuild a search index on
demand, so there is no loss of search capability.
2026-06-07 00:02:28 -07:00
James R. Barlow
0250929150
Update uv.lock
2026-05-26 13:11:12 -07:00
James R. Barlow
3f6feb1dcc
Merge branch 'main' of github.com:ocrmypdf/OCRmyPDF
2026-05-25 01:38:46 -07:00
jbarlow and GitHub
ab6553f4ff
Merge pull request #1677 from ocrmypdf/dependabot/uv/gitpython-3.1.50
...
Bump gitpython from 3.1.47 to 3.1.50
2026-05-25 01:36:02 -07:00
jbarlow and GitHub
cedca9fa1f
Merge pull request #1679 from ocrmypdf/dependabot/uv/urllib3-2.7.0
...
Bump urllib3 from 2.6.3 to 2.7.0
2026-05-25 01:35:45 -07:00
dependabot[bot] and GitHub
b18b1da6d0
Bump idna from 3.11 to 3.15
...
Bumps [idna](https://github.com/kjd/idna ) from 3.11 to 3.15.
- [Release notes](https://github.com/kjd/idna/releases )
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.md )
- [Commits](https://github.com/kjd/idna/compare/v3.11...v3.15 )
---
updated-dependencies:
- dependency-name: idna
dependency-version: '3.15'
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-19 21:26:42 +00:00
James R. Barlow
8709cf506b
Update uv.lock
2026-05-12 10:14:47 -07:00
dependabot[bot] and GitHub
0b370fdd15
Bump urllib3 from 2.6.3 to 2.7.0
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 2.6.3 to 2.7.0.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/2.6.3...2.7.0 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-version: 2.7.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-11 17:48:53 +00:00
dependabot[bot] and GitHub
1c16dd26f7
Bump gitpython from 3.1.47 to 3.1.50
...
Bumps [gitpython](https://github.com/gitpython-developers/GitPython ) from 3.1.47 to 3.1.50.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases )
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES )
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.47...3.1.50 )
---
updated-dependencies:
- dependency-name: gitpython
dependency-version: 3.1.50
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-05-09 04:47:56 +00:00
dependabot[bot] and GitHub
c355d927ba
Bump gitpython from 3.1.46 to 3.1.47
...
Bumps [gitpython](https://github.com/gitpython-developers/GitPython ) from 3.1.46 to 3.1.47.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases )
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES )
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.46...3.1.47 )
---
updated-dependencies:
- dependency-name: gitpython
dependency-version: 3.1.47
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-26 01:22:53 +00:00
James R. Barlow
2ed82de2e0
Update uv.lock again - pygithub
2026-04-19 13:58:46 -07:00
James R. Barlow
75714fe43e
Update uv.lock
...
For Pillow vuln. Fixes #1669
2026-04-19 13:06:22 -07:00
jbarlow and GitHub
e30c00cc26
Merge pull request #1649 from ocrmypdf:dependabot/uv/tornado-6.5.5
...
Bump tornado from 6.5.4 to 6.5.5
2026-04-03 01:07:59 -07:00
dependabot[bot] and GitHub
001b403657
Bump tornado from 6.5.4 to 6.5.5
...
Bumps [tornado](https://github.com/tornadoweb/tornado ) from 6.5.4 to 6.5.5.
- [Changelog](https://github.com/tornadoweb/tornado/blob/master/docs/releases.rst )
- [Commits](https://github.com/tornadoweb/tornado/compare/v6.5.4...v6.5.5 )
---
updated-dependencies:
- dependency-name: tornado
dependency-version: 6.5.5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-04-03 08:06:38 +00:00
jbarlow and GitHub
851c61ee85
Merge pull request #1657 from ocrmypdf:dependabot/uv/cryptography-46.0.6
...
Bump cryptography from 46.0.5 to 46.0.6
2026-04-03 01:06:25 -07:00
jbarlow and GitHub
f5ebd23b8f
Merge pull request #1653 from ocrmypdf:dependabot/uv/requests-2.33.0
...
Bump requests from 2.32.5 to 2.33.0
2026-04-03 01:05:58 -07:00
dependabot[bot] and GitHub
834b60a02a
Bump pygments from 2.19.2 to 2.20.0
...
Bumps [pygments](https://github.com/pygments/pygments ) from 2.19.2 to 2.20.0.
- [Release notes](https://github.com/pygments/pygments/releases )
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES )
- [Commits](https://github.com/pygments/pygments/compare/2.19.2...2.20.0 )
---
updated-dependencies:
- dependency-name: pygments
dependency-version: 2.20.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-30 20:07:51 +00:00
dependabot[bot] and GitHub
47e3b5b4d2
Bump cryptography from 46.0.5 to 46.0.6
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 46.0.5 to 46.0.6.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/46.0.5...46.0.6 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-version: 46.0.6
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-29 02:02:03 +00:00
dependabot[bot] and GitHub
d9346cc3d8
Bump requests from 2.32.5 to 2.33.0
...
Bumps [requests](https://github.com/psf/requests ) from 2.32.5 to 2.33.0.
- [Release notes](https://github.com/psf/requests/releases )
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md )
- [Commits](https://github.com/psf/requests/compare/v2.32.5...v2.33.0 )
---
updated-dependencies:
- dependency-name: requests
dependency-version: 2.33.0
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-26 17:26:22 +00:00
James R. Barlow
1dba941261
Add cyclopts for dev
2026-03-21 01:37:48 -07:00
James R. Barlow
5b9d6f979e
Add --no-overwrite / -n option to prevent overwriting output files
...
Fixes #1642 . Adds an early check in check_requested_output_file() that
raises OutputFileAccessError (exit code 5) if the destination file
already exists and --no-overwrite is set. The option is wired through
CLI, OcrOptions, and the Python API.
2026-03-10 01:58:57 -07:00
James R. Barlow
e19ea653aa
Switch to static versioning and two-workflow release model
...
Replace hatch-vcs dynamic versioning with static version in _version.py
and pyproject.toml. Split CI into build.yml (test + stage draft release
on main) and release.yml (publish from draft on tag push). Docker images
are built on main pushes and re-tagged with the release version on tag
push without rebuilding.
2026-02-20 23:34:03 -08:00
James R. Barlow
a899f0d59a
Split release_notes into parts for each major release
2026-02-20 18:19:31 -08:00
James R. Barlow
716ce6324c
Update dependencies
2026-02-11 00:43:01 -08:00
dependabot[bot] and GitHub
9a0dadbd4c
Bump cryptography from 46.0.4 to 46.0.5
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 46.0.4 to 46.0.5.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/46.0.4...46.0.5 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-version: 46.0.5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-02-11 02:57:37 +00:00
James R. Barlow
297fb786a0
Update uv.lock (for protobuf)
2026-01-29 18:33:00 -08:00
James R. Barlow
6fb7c5d95f
Additional build fixes
2026-01-20 21:49:40 -08:00
James R. Barlow
7ac51ac1a7
Fix type alias for Queue causing runtime TypeError
...
multiprocessing.Queue is a factory function, not a type, so it cannot
be used with the runtime | union operator. Move Queue, UserInit, and
WorkerInit type aliases into TYPE_CHECKING block to avoid evaluation
at runtime.
2026-01-20 20:38:33 -08:00
James R. Barlow
2f4280b66c
Comprrehensive documentation update in preparation for v17
2026-01-16 01:38:47 -08:00
James R. Barlow
5acf21651f
ruff lint and format
2026-01-13 01:50:57 -08:00
James R. Barlow
bf76c8270c
Rationalize optional dependencies vs dependency groups
...
Establish clear separation between user-facing optional dependencies
and developer-only dependency groups:
**Optional Dependencies (user features):**
- watcher: File watching service for batch processing
- webservice: Streamlit-based web UI
- Installable via: uv sync --extra <name> or pip install ocrmypdf[name]
**Dependency Groups (developer tools):**
- test: Testing infrastructure (merged from test + extended_test)
- docs: Documentation building tools
- streamlit-dev: Enhanced Streamlit development tools
- dev: General development tools (mypy, ipykernel)
- Installable via: uv sync --group <name> (uv only, NOT pip)
Breaking changes for developers:
- pip install -e .[test] no longer works → use uv sync --group test
- pip install -e .[docs] no longer works → use uv sync --group docs
- pip install -e .[extended_test] removed → merged into test group
No breaking changes for end users:
- pip install ocrmypdf[watcher] still works
- pip install ocrmypdf[webservice] still works
Updated:
- CI/CD workflows to use uv sync --group test
- Docker images to exclude test dependencies
- Documentation to recommend uv with pip as fallback
- pyproject.toml with clear comments explaining both systems
2026-01-13 00:34:55 -08:00
James R. Barlow
7a4b98974c
Integrate fpdf2 renderer and remove legacy hOCR renderer
...
- Update pipeline to use fpdf2 renderer as default
- Remove legacy hocrtransform PDF renderer (_font.py, _hocr.py,
pdf_renderer.py)
- Update CLI and options for fpdf2 renderer
- Add fpdf2 dependency to pyproject.toml
- Update graft module for fpdf2 multi-page rendering
2026-01-06 13:45:44 -08:00
James R. Barlow
cf3fb6e89b
Fix raster_device settings for pypdfium rasterizer
2025-12-21 12:29:17 -08:00
James R. Barlow
d556014185
Remove language warning
2025-12-13 11:41:58 -08:00
James R. Barlow
54ce09496c
v16.12.0 release notes
2025-11-11 13:48:06 -08:00
James R. Barlow
aa1cc8ae04
Update packages
2025-10-27 17:07:14 -07:00
James R. Barlow
4fc0c3a0d5
Add watcher test, such as it is
2025-08-13 01:04:58 -07:00
James R. Barlow
5cf86a7c2e
Update uv.lock
2025-06-13 00:02:53 -07:00
James R. Barlow
6f6448f286
Update dependency lockfile
2025-05-27 14:19:09 -07:00
James R. Barlow
9f6e5a48ad
Deny use of pikepdf 9.8.0 due to GlyphlessFont error
2025-05-27 12:16:19 -07:00
James R. Barlow
4143154e91
Update uv version and lock for build issues
2025-04-21 11:00:22 -07:00
James R. Barlow
92a78f611e
rst -> md migration in progress
2025-04-17 02:10:40 -07:00
James R. Barlow
073a434ab3
Fix webservice interactions with Docker
2025-01-04 12:09:32 -08:00
James R. Barlow
dd6ed4c5f8
Switch to streamlit based web app
2025-01-01 17:26:22 -08:00
James R. Barlow
3c4b099cb1
Don't try to install dev dependencies in build
2024-12-08 14:03:04 -08:00
James R. Barlow
15df9c370c
Update notes
2024-12-08 12:20:40 -08:00
James R. Barlow
5a1c043331
Check in uv.lock and update uv version
2024-11-27 17:14:07 -08:00