mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Update the Path2D
polyfill for Node.js environments
The polyfill that we use was recently split into two packages, and it now consists of a "core" package and a browser-specific package that build upon the former. Hence we need to update to use the "core" package, and slightly tweak the code that loads/initializes the polyfill; see also https://www.npmjs.com/package/path2d This patch was tested successfully with the [pdf2png example](https://github.com/mozilla/pdf.js/tree/master/examples/node/pdf2png), after running `gulp dist-install` locally, using [this PDF document](https://bug810214.bmoattachments.org/attachment.cgi?id=9254990) which contains Type3-fonts that render using `Path2D`.
This commit is contained in:
parent
e7203f558f
commit
dc0df0a3c2
4 changed files with 24 additions and 24 deletions
|
@ -2155,7 +2155,7 @@ function packageJson() {
|
|||
license: DIST_LICENSE,
|
||||
optionalDependencies: {
|
||||
canvas: "^2.11.2",
|
||||
"path2d-polyfill": "^2.0.1",
|
||||
path2d: "^0.1.2",
|
||||
},
|
||||
browser: {
|
||||
canvas: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue