mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fixes all examples to require workerSrc to be set.
This commit is contained in:
parent
28d340679a
commit
601d29b14e
6 changed files with 14 additions and 17 deletions
|
@ -18,6 +18,8 @@ var PAGE_NUMBER = 1;
|
|||
var PAGE_SCALE = 1.5;
|
||||
var SVG_NS = 'http://www.w3.org/2000/svg';
|
||||
|
||||
PDFJS.workerSrc = '../../build/pdf.worker.js';
|
||||
|
||||
function buildSVG(viewport, textContent) {
|
||||
// Building SVG with size of the viewport (for simplicity)
|
||||
var svg = document.createElementNS(SVG_NS, 'svg:svg');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue