Skip to content

Instantly share code, notes, and snippets.

@eddotman
Created March 16, 2015 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddotman/864e71b3c7f33143cfe5 to your computer and use it in GitHub Desktop.
Save eddotman/864e71b3c7f33143cfe5 to your computer and use it in GitHub Desktop.
PDF-to-svg error
NORTHWEST-THIRTYFIVE-FIVE-NINETY-THREE:iesl-pdf-to-text eddie$ bin/run.js --svg -i test.pdf -o out.svg
Warning: Setting up fake worker.
# End of Document
/Users/eddie/Documents/programming/iesl-pdf-to-text/src/main/js/pdf.combined.js:3276
var canvas = document.createElement('canvas');
^
TypeError: Object #<Object> has no method 'createElement'
at createScratchCanvas (/Users/eddie/Documents/programming/iesl-pdf-to-text/src/main/js/pdf.combined.js:3276:25)
at img.onload (/Users/eddie/Documents/programming/iesl-pdf-to-text/src/main/js/pdf.combined.js:2768:29)
at Image.inspect [as src] (/Users/eddie/Documents/programming/iesl-pdf-to-text/node_modules/canvas/lib/image.js:27:17)
at Object.<anonymous> (/Users/eddie/Documents/programming/iesl-pdf-to-text/src/main/js/pdf.combined.js:2790:19)
at Object.Promise (/Users/eddie/Documents/programming/iesl-pdf-to-text/src/main/js/pdf.combined.js:1247:16)
at /Users/eddie/Documents/programming/iesl-pdf-to-text/src/main/js/pdf.combined.js:2760:16
at Object.Promise.resolve.then.then.comObj.postMessage.isReply [as onResolve] (/Users/eddie/Documents/programming/iesl-pdf-to-text/src/main/js/pdf.combined.js:1520:28)
at Object.runHandlers (/Users/eddie/Documents/programming/iesl-pdf-to-text/src/main/js/pdf.combined.js:1169:35)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment