Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STY: Same attributes between PdfReader and PdfWriter #1870

Closed
wants to merge 4 commits into from

Conversation

pubpub-zz
Copy link
Collaborator

@pubpub-zz pubpub-zz commented Jun 4, 2023

provides the same interface to access root,info,id for communalisation
The objective is prepare some code factorization between PdfWriter / PdfReader

provides the same interface to access root,info,id for communalisation
the interface should be public
@codecov
Copy link

codecov bot commented Jun 4, 2023

Codecov Report

Patch coverage: 98.94% and project coverage change: +0.11 🎉

Comparison is base (8dbd82c) 93.42% compared to head (7b102b7) 93.54%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1870      +/-   ##
==========================================
+ Coverage   93.42%   93.54%   +0.11%     
==========================================
  Files          34       34              
  Lines        6634     6627       -7     
  Branches     1303     1297       -6     
==========================================
+ Hits         6198     6199       +1     
+ Misses        284      281       -3     
+ Partials      152      147       -5     
Impacted Files Coverage Δ
pypdf/_protocols.py 100.00% <ø> (ø)
pypdf/_writer.py 87.84% <98.18%> (+0.19%) ⬆️
pypdf/_page_labels.py 97.61% <100.00%> (ø)
pypdf/_reader.py 91.27% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@MartinThoma
Copy link
Member

@pubpub-zz This PR is open for quite a while. Is it still relevant?

@pubpub-zz
Copy link
Collaborator Author

Yes I need to complete it a little to isolate some common code : this will ease maintenance and allow to get some PdfReader only functions into PdfWriter

@MartinThoma
Copy link
Member

No problem. I didn't intend to put pressure on you. I just wanted to ensure that I don't forget PRs :-)

@MartinThoma MartinThoma changed the title STY : same attributes between PdfReader and PdfWriter STY: Same attributes between PdfReader and PdfWriter Oct 14, 2023
@pubpub-zz
Copy link
Collaborator Author

closed : rewritten in #2495

@pubpub-zz pubpub-zz closed this Mar 2, 2024
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.

None yet

2 participants