{"issue":{"title":"Uncaught Error: HIERARCHY_REQUEST_ERR: DOM Exception 3","user":{"login":"ontologiae","id":922689,"url":"https://api.github.com/users/ontologiae","avatar_url":"https://secure.gravatar.com/avatar/e9469a39475fc10350d84ea4938da8f8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e9469a39475fc10350d84ea4938da8f8"},"created_at":"2011-12-28T15:44:41Z","milestone":null,"state":"open","updated_at":"2011-12-28T15:44:41Z","labels":[],"id":2672172,"closed_at":null,"html_url":"https://github.com/mozilla/pdf.js/issues/984","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Context : Chrome and Firefox. Using Pdf.js built by make in the repository\r\n\r\nin the index.html we have (inside <body> </body>): <canvas id=\"the-canvas\" style=\"border:1px solid black;\"/>\r\n\r\nWe load the pdf with this code :\r\n\r\nfunction loadPDF() {\r\n//with a pdf file accessed by http, same error\r\nPDFJS.getPdf('papier_a_entete_cowebo.pdf', function getPdfHelloWorld(data) {\r\n  //\r\n  // Instantiate PDFDoc with PDF data\r\n  //\r\n  var pdf = new PDFJS.PDFDoc(data);\r\n  var page = pdf.getPage(1);\r\n  var scale = 1.5;\r\n\r\n  //\r\n  // Prepare canvas using PDF page dimensions\r\n  //\r\n  var canvas = document.getElementById('the-canvas');\r\n  var context = canvas.getContext('2d');\r\n  canvas.height = page.height * scale;\r\n  canvas.width = page.width * scale;\r\n\r\n  //\r\n  // Render PDF page into canvas context\r\n  //\r\n  page.startRendering(context);\r\n});\r\n}\r\n\r\n\r\nWe got :\r\n\r\npdf.js:14495Uncaught Error: HIERARCHY_REQUEST_ERR: DOM Exception 3\r\nfont_bindDompdf.js:14495\r\nfontLoaderBindpdf.js:12835\r\npageEnsureFontspdf.js:235\r\npageStartRenderingFromIRQueuepdf.js:198\r\npdfDocPagepdf.js:654\r\nmessageHandlerComObjOnMessagepdf.js:26855","number":984,"url":"https://api.github.com/repos/mozilla/pdf.js/issues/984","comments":0,"assignee":null},"action":"opened"}