{"action":"created","issue":{"url":"https://api.github.com/repos/Hopding/pdf-lib/issues/25","repository_url":"https://api.github.com/repos/Hopding/pdf-lib","labels_url":"https://api.github.com/repos/Hopding/pdf-lib/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/Hopding/pdf-lib/issues/25/comments","events_url":"https://api.github.com/repos/Hopding/pdf-lib/issues/25/events","html_url":"https://github.com/Hopding/pdf-lib/issues/25","id":351656233,"node_id":"MDU6SXNzdWUzNTE2NTYyMzM=","number":25,"title":"Problem with PDFDocumentFactory.load some usual non-encrypted PDF documents","user":{"login":"ithillel-aminev","id":6842894,"node_id":"MDQ6VXNlcjY4NDI4OTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6842894?v=4","gravatar_id":"","url":"https://api.github.com/users/ithillel-aminev","html_url":"https://github.com/ithillel-aminev","followers_url":"https://api.github.com/users/ithillel-aminev/followers","following_url":"https://api.github.com/users/ithillel-aminev/following{/other_user}","gists_url":"https://api.github.com/users/ithillel-aminev/gists{/gist_id}","starred_url":"https://api.github.com/users/ithillel-aminev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ithillel-aminev/subscriptions","organizations_url":"https://api.github.com/users/ithillel-aminev/orgs","repos_url":"https://api.github.com/users/ithillel-aminev/repos","events_url":"https://api.github.com/users/ithillel-aminev/events{/privacy}","received_events_url":"https://api.github.com/users/ithillel-aminev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-17T16:20:14Z","updated_at":"2018-08-25T19:50:26Z","closed_at":"2018-08-25T19:50:26Z","author_association":"NONE","body":"Hi @Hopding. There are problems with importing some usual **non-encrypted** PDF documents via PDFDocumentFactory.load method. While these documents are still could be opened by common viewer programs and even other libraries still can manage with that files (e.d. modify and so on). Problems I faced so far: \r\n\r\nat node_modules/pdf-lib/es/core/pdf-document/PDFDocument.js:249\r\n`validate(catalog, isInstance(PDFCatalog), '\"catalog\" must be a PDFCatalog object');`\r\n\r\nat node_modules/pdf-lib/lib/core/pdf-parser/parseDict.js:67\r\n`utils_1.error('Failed to parse dictionary value'), pdfObject = _b[0], r2 = _b[1];`\r\n\r\nIf it helps, I think I could even provide those pdf files that cause problems. "},"comment":{"url":"https://api.github.com/repos/Hopding/pdf-lib/issues/comments/415992510","html_url":"https://github.com/Hopding/pdf-lib/issues/25#issuecomment-415992510","issue_url":"https://api.github.com/repos/Hopding/pdf-lib/issues/25","id":415992510,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTk5MjUxMA==","user":{"login":"Hopding","id":10351828,"node_id":"MDQ6VXNlcjEwMzUxODI4","avatar_url":"https://avatars0.githubusercontent.com/u/10351828?v=4","gravatar_id":"","url":"https://api.github.com/users/Hopding","html_url":"https://github.com/Hopding","followers_url":"https://api.github.com/users/Hopding/followers","following_url":"https://api.github.com/users/Hopding/following{/other_user}","gists_url":"https://api.github.com/users/Hopding/gists{/gist_id}","starred_url":"https://api.github.com/users/Hopding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hopding/subscriptions","organizations_url":"https://api.github.com/users/Hopding/orgs","repos_url":"https://api.github.com/users/Hopding/repos","events_url":"https://api.github.com/users/Hopding/events{/privacy}","received_events_url":"https://api.github.com/users/Hopding/received_events","type":"User","site_admin":false},"created_at":"2018-08-25T19:50:26Z","updated_at":"2018-08-25T19:50:26Z","author_association":"OWNER","body":"I'm going to go ahead and close this issue for now. But please feel free to reopen it if you would still like some assistance!"}}
{"actor":{"display_login":"Hopding"}}