-
Notifications
You must be signed in to change notification settings - Fork 536
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
Fixes #478 (/Index problem) #479
Conversation
Fixing problem of incomplete analysis of the /Index entry.
Wrong subdirectory.
Fix problem of uncomplete analysis of /Index entry.
optical changes
optical changes
optical changes
After adding a description to the file, the valid /Index entry now contains two entries (consisting of 2 values: first object number, number of objects): /Index[2 1 21 2]
Adding test for issue 479
Forgot a {
Code style update
Added more description and more checks.
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.
First of all, thanks for your quick responses and good progression here! Just a few remarks.
optical fix
optical changes
change to remove the native_function_invocation message
Co-authored-by: Konrad Abicht <hi@inspirito.de>
Added comments...
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.
Looks ok, just ran php-cs-fixer
to fix the build
Didn't have much time to look into this, but it seems fine to me - congrats for fixing this @yasheena |
Changes for CS fixer
Comment update
Co-authored-by: Konrad Abicht <hi@inspirito.de>
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.
Thank you for your latest changes. It looks good now.
As always, we will keep this open for a few days so the community has a chance to comment, before we merge it.
Thanks. I've been waiting for this for a long time. |
This is the requested pull request from issue #478. Sorry, I was not yet familiar with pull requests.
After editing the document description of a PDF file, I've had some cases where getDetails() stopped reporting the /Info data to the Document class. I found the problem in the incomplete handling of the /Index area. So far it was assumed that the XRef is continuous (only one entry in the area /Index). In my cases there was more than one entry, e.g. "/Index[162 1 165 4]", which means 1 object starting at number 162 and 4 objects starting at number 165. I eliminated this problem in the file "RawDataParser.php" with this pull request.