{"action":"closed","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/10284","repository_url":"https://api.github.com/repos/mozilla/pdf.js","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/10284/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/10284/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/10284/events","html_url":"https://github.com/mozilla/pdf.js/issues/10284","id":383361306,"node_id":"MDU6SXNzdWUzODMzNjEzMDY=","number":10284,"title":"How to set cmap configs?","user":{"login":"komiyamast","id":32446778,"node_id":"MDQ6VXNlcjMyNDQ2Nzc4","avatar_url":"https://avatars3.githubusercontent.com/u/32446778?v=4","gravatar_id":"","url":"https://api.github.com/users/komiyamast","html_url":"https://github.com/komiyamast","followers_url":"https://api.github.com/users/komiyamast/followers","following_url":"https://api.github.com/users/komiyamast/following{/other_user}","gists_url":"https://api.github.com/users/komiyamast/gists{/gist_id}","starred_url":"https://api.github.com/users/komiyamast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komiyamast/subscriptions","organizations_url":"https://api.github.com/users/komiyamast/orgs","repos_url":"https://api.github.com/users/komiyamast/repos","events_url":"https://api.github.com/users/komiyamast/events{/privacy}","received_events_url":"https://api.github.com/users/komiyamast/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-22T02:49:27Z","updated_at":"2018-11-22T09:37:08Z","closed_at":"2018-11-22T09:37:08Z","author_association":"NONE","body":"Configuration:\r\n- PDF.js version: master branch\r\n\r\nSteps to reproduce the problem:\r\n1. I want to set the params 'cmapUrl' and 'cMapPacked'.\r\n2. However, it seems to be impossible to set these params from the outside.\r\n\r\nhttps://github.com/mozilla/pdf.js/blob/7b4f3035d2373ff97c74bcdc8a8e387709649ec6/src/display/api.js#L1657-L1660\r\n\r\nWhat is the expected behavior? (add screenshot)\r\nIs there a way to do that as following code?\r\n\r\n```\r\nimport pdfjsLib from 'pdfjs-dist/build/pdf'\r\npdfjsLib.cmapUrl = '...'\r\npdfjsLib.cMapPacked = true\r\n```\r\n\r\nI know this code worked in v1.10, but I cannot find similar code in latest master.\r\n\r\nhttps://github.com/mozilla/pdf.js/blob/ea29ec83e1bb4ea44d71cccc451c6b9374e10fb9/src/display/global.js#L102-L107"}}
{"actor":{"display_login":"komiyamast"}}