We have released version 7.0.0 of our Node.js API client library.
New:
- Promises and async/await: Conversion methods return a Promise when called without a callback. Receive the complete output as a
Buffer, or await successful completion of a file conversion. - TypeScript support: Bundled type declarations provide type checking and editor completion.
- ES module imports: Use default or named imports alongside the existing CommonJS
require()syntax. - Output streaming: New Promise-based streaming methods let you process large results without collecting the entire output in memory.
Changed:
- Previously deprecated methods have been removed. Their replacements are documented in the SDK guides.
- SDK errors now extend the native JavaScript
Errorclass. - The
endhandler is optional when using conversion callback objects.
Callback-based conversions remain supported. SDK 7 supports Node.js 18 and later and retains zero third-party runtime dependencies.
Install or update with:
npm install pdfcrowd
Before updating an existing integration, review the upgrade notes.