Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rbreaves opened this issue Sep 5, 2018 · 3 comments
Open

Comments

@rbreaves
Copy link

rbreaves commented Sep 5, 2018

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
Copy link
Author

rbreaves commented Sep 5, 2018

The version it was last compatible with is 0.4.3.

@StefanScherer
Copy link
Collaborator

Thank you for the heads up.

@atiertant
Copy link

@rbreaves you could try pclkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants