mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Refactors SVG api
This commit is contained in:
parent
36eac09171
commit
bc574aa629
3 changed files with 30 additions and 27 deletions
|
@ -48,8 +48,8 @@ PDFJS.getDocument(url).then(function(pdf) {
|
|||
|
||||
return page.getOperatorList().then(function (opList) {
|
||||
var svgGfx = new PDFJS.SVGGraphics(page.commonObjs, page.objs);
|
||||
return svgGfx.loadDependencies(opList).then(function (values) {
|
||||
container.appendChild(svgGfx.getSVG(viewport, pageNum, opList));
|
||||
return svgGfx.getSVG(opList, viewport).then(function (svg) {
|
||||
container.appendChild(svg);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue