Document and Image Conversion
PSPDFKit for Node.js Beta is a Node.js PDF library for converting Word, Excel, PowerPoint, and image files without MS Office or third-party open source dependencies. It offers developers the ability to quickly add PDF functionality to any Node.js application.
- JavaScript — Simple, easy to use, and highly customizable
- MS Office and PDF — Office conversion engine built from the ground up
- TIFF, PNG, and JPEG — Directly render or convert images without any plugins
- Install from npm:
npm install @pspdfkit/nodejs
- Import the
load
function:
import { load } from '@pspdfkit/nodejs'
- Load a document and convert it to PDF:
const file = fs.readFileSync('./sample.docx');
const instance = await load({ document: file })
const buffer = await instance.exportPDF()
instance.close()
PSPDFKit for Node.js Beta enables you to load, save, convert, and edit 15 different PDF, document, Office, and image file types.
- DOCX, DOC, DOTX, DOCM, XLSX, XLS, XLSM, PPTX, PPT, PPTM
- PNG, JPEG, JPG, TIFF, TIF
PSPDFKit offers comprehensive guides to help you quickly integrate and customize your application. It comes with full technical support that includes direct access to the engineers who built the product. Whether you have questions getting started or you want to know how to best integrate new features into your app, we’re here to help you find a solution.
Most popular guides:
For a detailed list of the changes included in each version, please see the changelog.
PSPDFKit is a commercial product that offers a free trial license to evaluate and integrate it into your product. Visit our pricing page to learn more about licensing our solution.