mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Replace deprecated constructor with
This commit is contained in:
parent
2030d1718f
commit
09359efca0
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ function runTtx(ttxResourcesHome, fontPath, registerOnCancel, callback) {
|
|||
|
||||
exports.translateFont = function translateFont(content, registerOnCancel,
|
||||
callback) {
|
||||
var buffer = new Buffer(content, 'base64');
|
||||
var buffer = Buffer.from(content, 'base64');
|
||||
var taskId = (nextTTXTaskId++).toString();
|
||||
var fontPath = path.join(ttxResourcesHome, taskId + '.otf');
|
||||
var resultPath = path.join(ttxResourcesHome, taskId + '.ttx');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue