UNPKG

@nutrient-sdk/node

Version:

Convert documents in your Node.js apps.

58 lines (37 loc) 2.88 kB
# Nutrient Node.js SDK Beta **Document and Image Conversion** Nutrient Node.js SDK Beta is a [Node.js PDF library](https://www.nutrient.io/guides/nodejs/?utm_source=npm&utm_medium=referral&utm_campaign=nodejs_readme) 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 ## Getting Started 1. Install from npm: ```bash npm install @nutrient-sdk/node ``` 2. Import the `load` function: ```js import { load } from '@nutrient-sdk/node' ``` 3. Load a document and convert it to PDF: ```js const file = fs.readFileSync('./sample.docx'); const instance = await load({ document: file }) const buffer = await instance.exportPDF() instance.close() ``` ## File Type Support Nutrient Node.js SDK Beta enables you to load, save, convert, and edit 15 different PDF, document, Office, and image file types. - PDF - DOCX, DOC, DOTX, DOCM, XLSX, XLS, XLSM, PPTX, PPT, PPTM - PNG, JPEG, JPG, TIFF, TIF ## Documentation Nutrient offers comprehensive [guides](https://www.nutrient.io/guides/nodejs/?utm_source=npm&utm_medium=referral&utm_campaign=nodejs_readme) to help you quickly integrate and customize your application. It comes with [full technical support](http://www.nutrient.io/support/request/?utm_source=npm&utm_medium=referral&utm_campaign=nodejs_readme) 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: - [Convert Office to PDF](https://www.nutrient.io/guides/nodejs/conversion/office-to-pdf/?utm_source=npm&utm_medium=referral&utm_campaign=nodejs_readme) - [Convert Image to PDF](https://www.nutrient.io/guides/nodejs/conversion/image-to-pdf/?utm_source=npm&utm_medium=referral&utm_campaign=nodejs_readme) - [Convert PDF to Image](https://www.nutrient.io/guides/nodejs/conversion/pdf-to-image/?utm_source=npm&utm_medium=referral&utm_campaign=nodejs_readme) ## Changelog For a detailed list of the changes included in each version, please see the [changelog](https://www.nutrient.io/changelog/nodejs/?utm_source=npm&utm_medium=referral&utm_campaign=nodejs_readme). ## License and Support Nutrient is a commercial product that offers a [free trial license](https://www.nutrient.io/try/) to evaluate and integrate it into your product. Visit our [pricing page](https://www.nutrient.io/pricing/) to learn more about licensing our solution.