-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
dict.get is not a function #7303
Comments
This is a unfortunately a regression from PR #5910. It seems to me that we need a _much_ more robust way of trying to recover valid [1] Line 928 in d5c0008
|
@Snuffleupagus does it miss generation check? or shall we track the latest obj with specific number instead of first? |
Adobe Reader asking to re-save the opened PDF, this means PDF was corrupted and the Reader recovered it. |
I don't think so, since off the top of my head all entries have
I'm not sure how we can solve this in general, since in this case there are e.g. two distinct |
Best solution will be to determine what the Reader does, I guess. However we need to understand how the file was created and intent of the generator. @danlester can you provide history of the PDF? |
We shall take the one that is placed before the trailer that had catalog object reference. This means we shall not commit to found objects until next trailer is found (if not found it at all we just use what we found) |
Sorry I missed your notification. I'm afraid I don't know much about the PDF history anyway - it wasn't my file originally. Will see if I can find anything out, but probably not. |
There is a problem rendering this PDF:
ws_protectyourwork_e.pdf
Using the standard web viewer example (build/generic/web/viewer.html) it runs into an exception, showing the error:
PDF.js v1.5.232 (build: a682cce)
Message: dict.get is not a function
This happens in Chrome, Firefox, Safari on the Mac - haven't tried any others. Message on Safari is: dict.get is not a function. (In 'dict.get('Filter')', 'dict.get' is undefined)
I hope this helps. Not sure if there is a problem with the PDF but I guess it would ideally catch the error anyway. PDF seems to display OK in other software.
Thanks,
Dan
The text was updated successfully, but these errors were encountered: