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: warn-only in readStringFromStream #837

Merged
merged 1 commit into from
Apr 28, 2022
Merged

Conversation

MartinThoma
Copy link
Member

An unexpected escape string was raising a PdfReadError before.
Now, only a warning is issued.

Closes #360
Closes #794 : Passing the strict parameter looks like a good idea,
but there is also the pdf parameter. Sadly, it is
None for that issue.

An unexpected escape string was raising a PdfReadError before.
Now, only a warning is issued.

Closes #360
Closes #794 : Passing the strict parameter looks like a good idea,
              but there is also the pdf parameter. Sadly, it is
              None for that issue.
@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #837 (81674ab) into main (e1408f7) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #837      +/-   ##
==========================================
+ Coverage   81.56%   81.65%   +0.08%     
==========================================
  Files          16       16              
  Lines        3694     3695       +1     
  Branches      801      801              
==========================================
+ Hits         3013     3017       +4     
+ Misses        504      502       -2     
+ Partials      177      176       -1     
Impacted Files Coverage Δ
PyPDF2/generic.py 85.37% <100.00%> (+0.37%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1408f7...81674ab. Read the comment docs.

@MartinThoma MartinThoma merged commit 5e86977 into main Apr 28, 2022
@MartinThoma MartinThoma deleted the allow-non-strict branch April 28, 2022 14:18
MartinThoma added a commit that referenced this pull request Apr 28, 2022
An unexpected escape string was raising a PdfReadError before.
Now, only a warning is issued.

Closes #360
Closes #794 : Passing the strict parameter looks like a good idea,
              but there is also the pdf parameter. Sadly, it is
              None for that issue.
VictorCarlquist pushed a commit to VictorCarlquist/PyPDF2 that referenced this pull request Apr 29, 2022
An unexpected escape string was raising a PdfReadError before.
Now, only a warning is issued.

Closes py-pdf#360
Closes py-pdf#794 : Passing the strict parameter looks like a good idea,
              but there is also the pdf parameter. Sadly, it is
              None for that issue.
MartinThoma added a commit that referenced this pull request May 1, 2022
Robustness (ROB):
-  Handle missing destinations in reader (#840)
-  warn-only in readStringFromStream (#837)
-  Fix corruption in startxref or xref table (#788 and #830)

Documentation (DOC):
-  Project Governance (#799)
-  History of PyPDF2
-  PDF feature/version support (#816)
-  More details on text parsing issues (#815)

Developer Experience (DEV):
-  Add benchmark command to Makefile
-  Ignore IronPython parts for code coverage (#826)

Maintenance (MAINT):
-  Split pdf module (#836)
-  Separated CCITTFax param parsing/decoding (#841)
-  Update requirements files

Testing (TST):
-  Use external repository for larger/more PDFs for testing (#820)
-  Swap incorrect test names (#838)
-  Add test for PdfFileReader and page properties (#835)
-  Add tests for PyPDF2.generic (#831)
-  Add tests for utils, form fields, PageRange (#827)
-  Add test for ASCII85Decode (#825)
-  Add test for FlateDecode (#823)
-  Add test for filters.ASCIIHexDecode (#822)

Code Style (STY):
-  Apply pre-commit (black, isort) + use snake_case variables (#832)
-  Remove debug code (#828)
-  Documentation, Variable names (#839)

Full Changelog: 1.27.9...1.27.10
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.

Unexpected escaped string for a valid PDF.
1 participant