Skip to content

Commit

Permalink
Added missing network stream for svgviewer example
Browse files Browse the repository at this point in the history
  • Loading branch information
wassupben committed Nov 13, 2017
1 parent 0052dc2 commit ead83b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/svgviewer/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ function renderDocument(pdf, svgLib) {
Promise.all([System.import('pdfjs/display/api'),
System.import('pdfjs/display/svg'),
System.import('pdfjs/display/global'),
System.import('pdfjs/display/network'),
System.resolve('pdfjs/worker_loader')])
.then(function (modules) {
var api = modules[0], svg = modules[1], global = modules[2];
var api = modules[0], svg = modules[1], global = modules[2], network = modules[3];
api.setPDFNetworkStreamClass(network.PDFNetworkStream);
// In production, change this to point to the built `pdf.worker.js` file.
global.PDFJS.workerSrc = modules[3];
global.PDFJS.workerSrc = modules[4];

// In production, change this to point to where the cMaps are placed.
global.PDFJS.cMapUrl = '../../external/bcmaps/';
Expand Down

0 comments on commit ead83b7

Please sign in to comment.