-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tolerance for extra whitespace in Indirect Objects
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4f3311e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, you have readNonWhitespace, that's great, I didn't know that.
this commit looks good & will well resolve the multiple space problem.
but I think for other token parse, there may still is some place only works with single space, if you can check & resolve them all, which will be best.
4f3311e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - I'll look into other areas that may not account for extra whitespace. Most parsing methods use readNonWhitespace; when it isn't used, the PDF should technically contain a specific formatting, but PyPDF2 should be able to handle PDFs which deviate from the PDF standard.