You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: preserve word boundaries in wrapped PDF table cells #403
The extraction worker uses the default page.extract_text() mode. With the pinned pypdf 6.21.4, wrapped PDF table-cell lines can lose their word boundary while extraction still succeeds.
Reproduced through the real packages/extraction/worker/extract.py pdf entry point using a synthetic Helvetica table header: a row label at baseline 700 and adjacent two-line cells at baselines 706 and 694.
This is a compatibility follow-up to the security update in #380. Evaluate a tested backport or a qualified newer pypdf release; do not restore the vulnerable older pin merely to recover spacing. The worker uses private pypdf hooks for resource limits, so a major upgrade needs explicit compatibility and rejection-path coverage.
Acceptance:
Add the synthetic wrapped-cell PDF as a regression fixture and test the real worker result, not just nonempty extraction.
Preserve word boundaries for both wrapped cells.
Retain the PDF resource-limit, malformed-input, decompression-limit, and container isolation checks.
Fix published in #405: upgrade pypdf to 7.1.0 and add a wrapped-table fixture plus an extraction-endpoint regression assertion. The committed fixture reproduces merged words through the real worker on 6.21.4 and preserves all five words on 7.1.0. Local qualification passed 84 worker cases, all 19 unit tests, and the full container/isolation suite; GitHub extraction CI also passed. Exact-head review and remaining CI are being monitored.
Activity
danny-avila commentedon Nov 17, 2026
Fix published in #405: upgrade pypdf to 7.1.0 and add a wrapped-table fixture plus an extraction-endpoint regression assertion. The committed fixture reproduces merged words through the real worker on 6.21.4 and preserves all five words on 7.1.0. Local qualification passed 84 worker cases, all 19 unit tests, and the full container/isolation suite; GitHub extraction CI also passed. Exact-head review and remaining CI are being monitored.