{"action":"created","issue":{"url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1346","repository_url":"https://api.github.com/repos/bpampuch/pdfmake","labels_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1346/labels{/name}","comments_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1346/comments","events_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1346/events","html_url":"https://github.com/bpampuch/pdfmake/issues/1346","id":313338434,"number":1346,"title":"Wrong Barcode Base64 decoding","user":{"login":"thejoe8495","id":15785677,"avatar_url":"https://avatars2.githubusercontent.com/u/15785677?v=4","gravatar_id":"","url":"https://api.github.com/users/thejoe8495","html_url":"https://github.com/thejoe8495","followers_url":"https://api.github.com/users/thejoe8495/followers","following_url":"https://api.github.com/users/thejoe8495/following{/other_user}","gists_url":"https://api.github.com/users/thejoe8495/gists{/gist_id}","starred_url":"https://api.github.com/users/thejoe8495/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejoe8495/subscriptions","organizations_url":"https://api.github.com/users/thejoe8495/orgs","repos_url":"https://api.github.com/users/thejoe8495/repos","events_url":"https://api.github.com/users/thejoe8495/events{/privacy}","received_events_url":"https://api.github.com/users/thejoe8495/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-11T14:02:52Z","updated_at":"2018-04-12T08:32:34Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\ni have problem to generate a PDF with generated Barcode.\r\nThe barcode who pdfmake decode is wrong. I hope anyone can help me and give me a workaround or an fix for it.\r\nThe Base64 converter http://freeonlinetools24.com/base64-image convert the image perfekt\r\n\r\n**Function to generate the barcode:**\r\nhttps://github.com/milon/barcode/blob/2a17de5f20ea9c23eb9924c00c74861a044886ef/src/Milon/Barcode/DNS1D.php#L170\r\n\r\n**Orginal:**\r\n![image](https://user-images.githubusercontent.com/15785677/38620703-748c4584-3d9f-11e8-9c29-f8bdc399cd55.png)\r\n\r\n**Broken Image pdfmake:**\r\n![image](https://user-images.githubusercontent.com/15785677/38621051-548c3d74-3da0-11e8-8e61-62c49e777439.png)\r\n\r\n\r\n**pdfmake Playground:**\r\nvar dd = {\tcontent: [\t\t{\t\t\timage: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAA/AQMAAABtkYKcAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAAL5JREFUKJGF0M0JwzAMBWDdeks2SBYxZK300hQ6SFdxFmjGyNWgSwzBr5IdsPNTqtMHz7ZkEbC6ukOgS/CkcGTYGqoyGIYng4+C6t+gI4A/kBZh2HolyBjAbp4zpFxNqRIwSgT3iBj38GCvcP3t5fHsM7B0kAqKMMwyTwmNBFZfeJfAdqsZIpYLSLGltoD+y5qEho4IssO4efmOqzJ0UZNGglauH+DXhOa+aqMCMgWHhPkEjbSFHO4zdL0xOuEL+QtWeoVDRCYAAAAASUVORK5CYII=',\r\n\t\t},\t\t\t],\t}\r\n\r\n**Base64:**\r\ndata:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAA/AQMAAABtkYKcAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAAL5JREFUKJGF0M0JwzAMBWDdeks2SBYxZK300hQ6SFdxFmjGyNWgSwzBr5IdsPNTqtMHz7ZkEbC6ukOgS/CkcGTYGqoyGIYng4+C6t+gI4A/kBZh2HolyBjAbp4zpFxNqRIwSgT3iBj38GCvcP3t5fHsM7B0kAqKMMwyTwmNBFZfeJfAdqsZIpYLSLGltoD+y5qEho4IssO4efmOqzJ0UZNGglauH+DXhOa+aqMCMgWHhPkEjbSFHO4zdL0xOuEL+QtWeoVDRCYAAAAASUVORK5CYII="},"comment":{"url":"https://api.github.com/repos/bpampuch/pdfmake/issues/comments/380722689","html_url":"https://github.com/bpampuch/pdfmake/issues/1346#issuecomment-380722689","issue_url":"https://api.github.com/repos/bpampuch/pdfmake/issues/1346","id":380722689,"user":{"login":"liborm85","id":1298652,"avatar_url":"https://avatars1.githubusercontent.com/u/1298652?v=4","gravatar_id":"","url":"https://api.github.com/users/liborm85","html_url":"https://github.com/liborm85","followers_url":"https://api.github.com/users/liborm85/followers","following_url":"https://api.github.com/users/liborm85/following{/other_user}","gists_url":"https://api.github.com/users/liborm85/gists{/gist_id}","starred_url":"https://api.github.com/users/liborm85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liborm85/subscriptions","organizations_url":"https://api.github.com/users/liborm85/orgs","repos_url":"https://api.github.com/users/liborm85/repos","events_url":"https://api.github.com/users/liborm85/events{/privacy}","received_events_url":"https://api.github.com/users/liborm85/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T08:32:34Z","updated_at":"2018-04-12T08:32:34Z","author_association":"COLLABORATOR","body":"Probably this png format is not supported, try re-save image."}}
{"actor":{"display_login":"liborm85"}}