{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/6397","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6397/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6397/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6397/events","html_url":"https://github.com/mozilla/pdf.js/issues/6397","id":103771534,"number":6397,"title":"Cigna Explanations Of Benefits render as gibberish","user":{"login":"InPermutation","id":1096993,"avatar_url":"https://avatars.githubusercontent.com/u/1096993?v=3","gravatar_id":"","url":"https://api.github.com/users/InPermutation","html_url":"https://github.com/InPermutation","followers_url":"https://api.github.com/users/InPermutation/followers","following_url":"https://api.github.com/users/InPermutation/following{/other_user}","gists_url":"https://api.github.com/users/InPermutation/gists{/gist_id}","starred_url":"https://api.github.com/users/InPermutation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InPermutation/subscriptions","organizations_url":"https://api.github.com/users/InPermutation/orgs","repos_url":"https://api.github.com/users/InPermutation/repos","events_url":"https://api.github.com/users/InPermutation/events{/privacy}","received_events_url":"https://api.github.com/users/InPermutation/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/pdf.js/labels/4-font-conversion","name":"4-font-conversion","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-28T18:24:09Z","updated_at":"2015-12-16T01:24:24Z","closed_at":null,"body":"I don't wish to supply an example, for patient privacy reasons, but I can attempt to help debug.\r\n\r\nHere's what the top right of the document looks like in Firefox 40.0.2 (Windows 64-bit):\r\n\r\n![gibberish](http://www.jkrall.net/pdfjs%20gibberish.PNG)\r\n\r\nHere's what the same document looks like in Chrome's PDF viewer:\r\n\r\n![Customer service...](http://www.jkrall.net/chrome%20pdf%20viewer.PNG)\r\n\r\nWindows `Reader` handles it fine, too:\r\n\r\n![Customer service...](http://www.jkrall.net/TWINUI.png)\r\n\r\nDocument Properties\r\n=====\r\n```\r\nFile name: document.pdf\r\nFile size: 371 KB (379,875 bytes)\r\nTitle: -\r\nAuthor: TargetStream Technologies\r\nSubject: -\r\nKeywords: -\r\nCreation Date: -\r\nModification Date: -\r\nCreator: TargetStream Technologies StreamEDP\r\nPDF Producer: TargetStream StreamEDP for Connecticut General Life Insurance Company, Inc.\r\nPDF Version:  1.4\r\nPage Count: 4 \r\n```\r\n\r\nWhat other information would be helpful?"},"comment":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/164954332","html_url":"https://github.com/mozilla/pdf.js/issues/6397#issuecomment-164954332","issue_url":"https://api.github.com/repos/mozilla/pdf.js/issues/6397","id":164954332,"user":{"login":"brendandahl","id":942640,"avatar_url":"https://avatars.githubusercontent.com/u/942640?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandahl","html_url":"https://github.com/brendandahl","followers_url":"https://api.github.com/users/brendandahl/followers","following_url":"https://api.github.com/users/brendandahl/following{/other_user}","gists_url":"https://api.github.com/users/brendandahl/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandahl/subscriptions","organizations_url":"https://api.github.com/users/brendandahl/orgs","repos_url":"https://api.github.com/users/brendandahl/repos","events_url":"https://api.github.com/users/brendandahl/events{/privacy}","received_events_url":"https://api.github.com/users/brendandahl/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T01:24:24Z","updated_at":"2015-12-16T01:24:24Z","body":"Looked into this a bit. When we generate the cmap for this font the length of the table overflows the maximum allowed length of a cmap format 4 table(16bits). This appears to mainly happen because we use the CIDtoGIDMap in the PDF that has tons of char codes mapped to one glyph id (32). Format 4 is very inefficient to represent this. To fix this we could potentially use a format 12 or 13 cmap. I'm not sure how well other cmap formats are supported on the various platforms though."}}