pdf-play
v1.0.1
Published
A NPM Package for pdf manipulation.
Downloads
21
Maintainers
Readme
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);