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

ROB: Tolerate streams without length field #1717

Merged
merged 3 commits into from
Mar 18, 2023

Conversation

pubpub-zz
Copy link
Collaborator

the field /Length is normally required, but acrobat reader and other reader are tolerant
the mod in _utils.py is fixing a bug detected with the updated test
closes #1715

the field /Length is normally required, but acrobat reader and other reader are tolerant

closes py-pdf#1715
@MartinThoma
Copy link
Member

You are fast! 🚀

@codecov
Copy link

codecov bot commented Mar 15, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.03 ⚠️

Comparison is base (d5ac6ac) 92.51% compared to head (e2143ce) 92.48%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1717      +/-   ##
==========================================
- Coverage   92.51%   92.48%   -0.03%     
==========================================
  Files          34       34              
  Lines        6516     6521       +5     
  Branches     1288     1290       +2     
==========================================
+ Hits         6028     6031       +3     
- Misses        316      318       +2     
  Partials      172      172              
Impacted Files Coverage Δ
pypdf/_utils.py 97.43% <100.00%> (ø)
pypdf/generic/_data_structures.py 90.15% <100.00%> (+0.06%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@pubpub-zz
Copy link
Collaborator Author

ready for review

@MartinThoma MartinThoma changed the title ROB : tolerate streams without length field ROB: Tolerate streams without length field Mar 18, 2023
@MartinThoma MartinThoma merged commit 1d98969 into py-pdf:main Mar 18, 2023
MartinThoma added a commit that referenced this pull request Mar 18, 2023
New Features (ENH)
-  Extend PdfWriter.append() to PageObjects (#1704)
-  Support qualified names in update_page_form_field_values (#1695)

Robustness (ROB)
-  Tolerate streams without length field (#1717)
-  Accept DictionaryObject in /D of NamedDestination (#1720)
-  Widths def in cmap calls IndirectObject (#1719)
@pubpub-zz pubpub-zz deleted the MissingLength branch June 24, 2023 08:40
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.

pypdf.errors.PdfStreamError: Stream length not defined
2 participants