{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/7887","repository_url":"https://api.github.com/repos/mozilla/pdf.js","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7887/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7887/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7887/events","html_url":"https://github.com/mozilla/pdf.js/issues/7887","id":194815110,"number":7887,"title":"PDFJS rendering barcode as text ","user":{"login":"justrajesh","id":23747392,"avatar_url":"https://avatars.githubusercontent.com/u/23747392?v=3","gravatar_id":"","url":"https://api.github.com/users/justrajesh","html_url":"https://github.com/justrajesh","followers_url":"https://api.github.com/users/justrajesh/followers","following_url":"https://api.github.com/users/justrajesh/following{/other_user}","gists_url":"https://api.github.com/users/justrajesh/gists{/gist_id}","starred_url":"https://api.github.com/users/justrajesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justrajesh/subscriptions","organizations_url":"https://api.github.com/users/justrajesh/orgs","repos_url":"https://api.github.com/users/justrajesh/repos","events_url":"https://api.github.com/users/justrajesh/events{/privacy}","received_events_url":"https://api.github.com/users/justrajesh/received_events","type":"User","site_admin":false},"labels":[{"id":186434,"url":"https://api.github.com/repos/mozilla/pdf.js/labels/4-information-requested","name":"4-information-requested","color":"0b02e1","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-11T06:03:08Z","updated_at":"2016-12-18T14:44:36Z","closed_at":"2016-12-18T14:44:36Z","body":"Hi, \r\nI integrated PDFJS in one of my internal sites, and it works great, but I am stuck with one of the PDF, where the texts are in chinese and barcode do not get rendered. the encoded font type is \"ArialUnicodeMS\" (subtype = Type0 font)\r\n\r\n\r\nInitially I had a blank PDF rendered, even though the pdf had text and Barcode was blank, Then I saw the error in the console and added a try catch arround the code in pdfjs.work.js file --> [data = this.convert(name, cff, properties);], then chinese text statred rendering but I am still stuck with the barcode, the barcode shows the text \"ÍÂÂ\"8Â!Î\" instead of the actual barcode.\r\n\r\nReferred code where try catch block is added \r\n\r\nvar Font = (function FontClosure() {\r\n..............\r\n\r\ntry { \r\n        \tdata = this.convert(name, cff, properties);\r\n        }catch (e) {\r\n        \tconsole.log(e.message); //Cannot read property '1' of undefined        \t\r\n        }\r\n\r\nThe barcode on the PDF file in rendered as a text and not as barcode.\r\nThe pdf file has some account information, so I am not able to attach the pdf file, but I will try to attach one with similar issue soon\r\nKindly help me, \r\nI am using PDFJS version 1.4.20\r\n\r\n\r\nThanks and Regards\r\nRajesh\r\n![image](https://cloud.githubusercontent.com/assets/23747392/21078442/cda0ee78-bf3c-11e6-931d-1767c0444650.png)\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/comments/267825099","html_url":"https://github.com/mozilla/pdf.js/issues/7887#issuecomment-267825099","issue_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7887","id":267825099,"user":{"login":"timvandermeij","id":1993262,"avatar_url":"https://avatars.githubusercontent.com/u/1993262?v=3","gravatar_id":"","url":"https://api.github.com/users/timvandermeij","html_url":"https://github.com/timvandermeij","followers_url":"https://api.github.com/users/timvandermeij/followers","following_url":"https://api.github.com/users/timvandermeij/following{/other_user}","gists_url":"https://api.github.com/users/timvandermeij/gists{/gist_id}","starred_url":"https://api.github.com/users/timvandermeij/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvandermeij/subscriptions","organizations_url":"https://api.github.com/users/timvandermeij/orgs","repos_url":"https://api.github.com/users/timvandermeij/repos","events_url":"https://api.github.com/users/timvandermeij/events{/privacy}","received_events_url":"https://api.github.com/users/timvandermeij/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T14:44:36Z","updated_at":"2016-12-18T14:44:36Z","body":"Closing as incomplete. However, we will reopen this once a PDF file is provided."}}
{"actor":{"display_login":"timvandermeij"}}