Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pranavbharadwaj007/pdf-play
- Owner: pranavbharadwaj007
- Created: 2024-01-27T05:11:34.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-27T17:12:40.000Z (12 months ago)
- Last Synced: 2024-08-31T16:39:29.004Z (5 months ago)
- Language: TypeScript
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pdf-play
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);
```