Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pranavbharadwaj007/pdf-play

A NPM Package for pdf manipulation in Typescript
https://github.com/pranavbharadwaj007/pdf-play

Last synced: 1 day ago
JSON representation

A NPM Package for pdf manipulation in Typescript

Awesome Lists containing this project

README

        

# pdf-play

pdf-play Logo

A NPM Package for PDF manipulation.

## Installation

You can install `pdf-play` using npm:

```bash
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):

```bash
sudo apt update
sudo apt install poppler-utils
```
### For macOS (using Homebrew):

```bash
brew install poppler
```

```javascript
const { toImage } = require('pdf-play');

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

toImage(pdfFilePath, options);
```