1.0.1 • Published 3 months ago

pdf-play v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

pdf-play

A NPM Package for PDF manipulation.

Installation

You can install pdf-play using npm:

npm install pdf-play

Before using pdf-play, ensure that poppler-utils is installed on your system. You can install poppler-utils using the following commands:

For Linux (Debian/Ubuntu):

sudo apt update
sudo apt install poppler-utils

For macOS (using Homebrew):

brew install poppler
const { toImage } = require('pdf-play');

// Example usage
const pdfFilePath = '/path/to/your/pdf/file.pdf';
const options = { format: 'png' };

toImage(pdfFilePath, options);