{"action":"created","issue":{"url":"https://api.github.com/repos/Hopding/pdf-lib/issues/44","repository_url":"https://api.github.com/repos/Hopding/pdf-lib","labels_url":"https://api.github.com/repos/Hopding/pdf-lib/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/Hopding/pdf-lib/issues/44/comments","events_url":"https://api.github.com/repos/Hopding/pdf-lib/issues/44/events","html_url":"https://github.com/Hopding/pdf-lib/issues/44","id":376829448,"node_id":"MDU6SXNzdWUzNzY4Mjk0NDg=","number":44,"title":"Corrupt PDF issue","user":{"login":"digi-chris","id":3625850,"node_id":"MDQ6VXNlcjM2MjU4NTA=","avatar_url":"https://avatars3.githubusercontent.com/u/3625850?v=4","gravatar_id":"","url":"https://api.github.com/users/digi-chris","html_url":"https://github.com/digi-chris","followers_url":"https://api.github.com/users/digi-chris/followers","following_url":"https://api.github.com/users/digi-chris/following{/other_user}","gists_url":"https://api.github.com/users/digi-chris/gists{/gist_id}","starred_url":"https://api.github.com/users/digi-chris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digi-chris/subscriptions","organizations_url":"https://api.github.com/users/digi-chris/orgs","repos_url":"https://api.github.com/users/digi-chris/repos","events_url":"https://api.github.com/users/digi-chris/events{/privacy}","received_events_url":"https://api.github.com/users/digi-chris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-11-02T14:20:39Z","updated_at":"2018-11-23T15:56:26Z","closed_at":"2018-11-23T15:56:26Z","author_association":"NONE","body":"Hi,\r\n\r\nI've got a complex PDF file that doesn't save correctly when run through pdf-lib - although it does load OK and renders with other libraries. If I simply load the file and then save it again through pdf-lib, the resultant file doesn't render correctly in Chrome's PDF viewer (it seems to stop drawing before everything is on-screen), and if I open it in Adobe Reader, I get the following error:\r\n\r\n> The font 'UZCHSP+Helvetica' contains a bad /BBox.\r\n\r\nThe PDF does contain the Helvetica font, but it doesn't contain a font called 'UZCHSP+Helvetica', so I'm not sure where this is coming from.\r\n\r\nIf I open the file in Adobe Acrobat and resave it, the resultant file is a bit smaller and then pdf-lib processes it just fine.\r\n\r\nUnfortunately, I'm not 100% sure if I can share the PDF file publicly as it is copyrighted, so currently I'm just looking for any pointers or tips as to where I could look to find the problem - and I'll share my results here.\r\n\r\nI was thinking maybe if I could find a list of fonts used in the PDF via pdf-lib, I could then also look up the bounding boxes for the font glyphs and that might shed some light on the matter. But, I can't work out how to see the fonts that are held in the file. Any ideas?\r\n\r\nThanks,\r\n\r\nChris."},"comment":{"url":"https://api.github.com/repos/Hopding/pdf-lib/issues/comments/441274411","html_url":"https://github.com/Hopding/pdf-lib/issues/44#issuecomment-441274411","issue_url":"https://api.github.com/repos/Hopding/pdf-lib/issues/44","id":441274411,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTI3NDQxMQ==","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-11-23T15:56:26Z","updated_at":"2018-11-23T15:56:26Z","author_association":"OWNER","body":"Version [`0.4.1`](https://www.npmjs.com/package/pdf-lib/v/0.4.1) is now published. It contains the parser bug fixes for this issue. The full release notes are available [here](https://github.com/Hopding/pdf-lib/releases/tag/v0.4.1).\r\n\r\nYou can install this new version with npm:\r\n```\r\nnpm install pdf-lib@0.4.1\r\n```\r\nIt's also available on unpkg:\r\n* https://unpkg.com/pdf-lib@0.4.1/dist/pdf-lib.js\r\n* https://unpkg.com/pdf-lib@0.4.1/dist/pdf-lib.min.js"}}
{"actor":{"display_login":"Hopding"}}