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: Invalid float object; use 0 as fallback #782

Merged
merged 2 commits into from
Apr 19, 2022
Merged

Conversation

MartinThoma
Copy link
Member

Users report the following error:
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
and:
InvalidOperation: Invalid Literal for Decimal '0.0000-74251147'

Ghostscript when it encounters this reference, treats the value as if it
was "0.0". PyPDF2 will now do the same.

Closes #386

Co-authored-by: James Campbell [email protected]

MartinThoma and others added 2 commits April 19, 2022 18:32
Users report the following error:
    decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
and:
    InvalidOperation: Invalid Literal for Decimal '0.0000-74251147'

Ghostscript when it encounters this reference, treats the value as if it
was "0.0". PyPDF2 will now do the same.

Closes #386

Co-authored-by: James Campbell <[email protected]>
@MartinThoma MartinThoma merged commit b82f080 into main Apr 19, 2022
@MartinThoma MartinThoma deleted the decimal-fallback branch April 19, 2022 16:38
MartinThoma added a commit that referenced this pull request Apr 21, 2022
Bug Fixes (BUG):
-  Use 1MB as offset for readNextEndLine (#321)
-  'PdfFileWriter' object has no attribute 'stream' (#787)

Robustness (ROB):
-  Invalid float object; use 0 as fallback (#782)

Documentation (DOC):
-  Robustness (#785)

Full Changelog: 1.27.7...1.27.8
VictorCarlquist pushed a commit to VictorCarlquist/PyPDF2 that referenced this pull request Apr 29, 2022
Users report the following error:
    decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
and:
    InvalidOperation: Invalid Literal for Decimal '0.0000-74251147'

Ghostscript when it encounters this reference, treats the value as if it
was "0.0". PyPDF2 will now do the same.

Closes py-pdf#386

Co-authored-by: James Campbell <[email protected]>
VictorCarlquist pushed a commit to VictorCarlquist/PyPDF2 that referenced this pull request Apr 29, 2022
Bug Fixes (BUG):
-  Use 1MB as offset for readNextEndLine (py-pdf#321)
-  'PdfFileWriter' object has no attribute 'stream' (py-pdf#787)

Robustness (ROB):
-  Invalid float object; use 0 as fallback (py-pdf#782)

Documentation (DOC):
-  Robustness (py-pdf#785)

Full Changelog: py-pdf/pypdf@1.27.7...1.27.8
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.

InvalidOperation: Invalid Literal for Decimal '0.0000-74251147'
1 participant