Skip to content

BUG: Avoid sharing array-based content streams between pages#3681

Merged
stefan6419846 merged 3 commits intopy-pdf:mainfrom
stefan6419846:issue3680
Mar 12, 2026
Merged

BUG: Avoid sharing array-based content streams between pages#3681
stefan6419846 merged 3 commits intopy-pdf:mainfrom
stefan6419846:issue3680

Conversation

@stefan6419846
Copy link
Collaborator

Otherwise, applying a transformation to one of the pages renders all pages referencing the shared objects invalid due to PageObject.replace_contents setting them to a NullObject without being able to reliable check for further usages.

Closes #3680.

Otherwise, applying a transformation to one of the pages renders all
pages referencing the shared objects invalid due to
`PageObject.replace_contents` setting them to a `NullObject` without
being able to reliable check for further usages.
@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.39%. Comparing base (cf2e518) to head (d8fa545).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3681   +/-   ##
=======================================
  Coverage   97.39%   97.39%           
=======================================
  Files          55       55           
  Lines        9964     9967    +3     
  Branches     1829     1830    +1     
=======================================
+ Hits         9704     9707    +3     
  Misses        151      151           
  Partials      109      109           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stefan6419846 stefan6419846 merged commit 5a9a0da into py-pdf:main Mar 12, 2026
18 checks passed
@stefan6419846 stefan6419846 deleted the issue3680 branch March 12, 2026 12:57
stefan6419846 added a commit that referenced this pull request Mar 15, 2026
## What's new

### New Features (ENH)
- Expose /Perms verification result on Encryption object (#3672) by @costajohnt

### Performance Improvements (PI)
- Fix O(n²) performance in NameObject read/write (#3679) by @dmitry-kostin
- Batch-parse all objects in ObjStm on first access (#3677) by @dmitry-kostin

### Bug Fixes (BUG)
- Avoid sharing array-based content streams between pages (#3681) by @stefan6419846
- Avoid accessing invalid page when inserting blank page under some conditions (#3529) by @j-t-1

[Full Changelog](6.8.0...6.9.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some content being lost on appending and scaling pages

1 participant