mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Fixes image and font embedding
This commit is contained in:
parent
0f862e7eb3
commit
de23d3791e
3 changed files with 27 additions and 3 deletions
|
@ -65,6 +65,7 @@ PDFJS.getDocument(data).then(function (doc) {
|
|||
|
||||
return page.getOperatorList().then(function (opList) {
|
||||
var svgGfx = new PDFJS.SVGGraphics(page.commonObjs, page.objs);
|
||||
svgGfx.embedFonts = true;
|
||||
return svgGfx.getSVG(opList, viewport).then(function (svg) {
|
||||
var svgDump = svg.toString();
|
||||
writeToFile(svgDump, pageNum);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue