ipp icon indicating copy to clipboard operation
ipp copied to clipboard

PDFDocument#output is deprecated, and has been removed from PDFKit

Open rbreaves opened this issue 6 years ago • 3 comments

This is the current error that is received when running the example code. Did PDFKit update their package and break compatibility with this project?

      throw new Error('PDFDocument#output is deprecated, and has been removed from PDFKit. Please pipe the document into a Node stream.');
      ^

Error: PDFDocument#output is deprecated, and has been removed from PDFKit. Please pipe the document into a Node stream.
    at PDFDocument.output (/Users/ryanreaves/Documents/git-projects/ippTest/node_modules/pdfkit/js/document.js:183:13)
    at Object.<anonymous> (/Users/ryanreaves/Documents/git-projects/ippTest/test.js:8:5)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:266:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)```

rbreaves avatar Sep 05 '18 21:09 rbreaves

The version it was last compatible with is 0.4.3.

rbreaves avatar Sep 05 '18 21:09 rbreaves

Thank you for the heads up.

StefanScherer avatar Sep 06 '18 05:09 StefanScherer

@rbreaves you could try pclkit

atiertant avatar Jan 05 '21 08:01 atiertant