Skip to content

Jules - add Document.repair() and Document.save() raise_on_repair flag.#4887

Merged
julian-smith-artifex-com merged 5 commits into
mainfrom
jules
Feb 5, 2026
Merged

Jules - add Document.repair() and Document.save() raise_on_repair flag.#4887
julian-smith-artifex-com merged 5 commits into
mainfrom
jules

Conversation

@julian-smith-artifex-com
Copy link
Copy Markdown
Collaborator

@julian-smith-artifex-com julian-smith-artifex-com commented Feb 5, 2026

Support for possible workarounds for #4790.

tests/test_pagedelete.py:test_4790(): New test, expects the current incorrect
behaviour, checks workarounds fix the issue, that new Document.save() flag
<raise_on_repair> works, and that new Document.repair() works.

tests/resources/test_4790.pdf: new input file.
Allows caller to detect potential data loss in saved file.
Document Document.save()'s new <raise_on_repair>.
Document new Document.repair().

Also document Document.save()'s <compression_effort>.
@julian-smith-artifex-com julian-smith-artifex-com changed the title Jules Jules - add Document.repair() and Document.save() raise_on_repair flag. Feb 5, 2026
@julian-smith-artifex-com julian-smith-artifex-com marked this pull request as ready for review February 5, 2026 11:37
@julian-smith-artifex-com julian-smith-artifex-com merged commit 6e431eb into main Feb 5, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants