https://github.com/dmshvetsov/pdf-prepend-image
Prepend an image to a PDF file (Node.JS Script)
https://github.com/dmshvetsov/pdf-prepend-image
image nodejs pdf script
Last synced: 4 months ago
JSON representation
Prepend an image to a PDF file (Node.JS Script)
- Host: GitHub
- URL: https://github.com/dmshvetsov/pdf-prepend-image
- Owner: dmshvetsov
- Created: 2020-05-24T11:58:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T09:07:44.000Z (over 5 years ago)
- Last Synced: 2025-03-23T06:41:28.244Z (11 months ago)
- Topics: image, nodejs, pdf, script
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.JS script to prepend an image to a PDF file
Prepend an image to a PDF file. Most obvious usage is to add a cover for a PDF.
Tested with Node.JS >=12.4.0.
## Setup
$ git clone git@github.com:iamdidev/pdf-append-image.git
$ cd pdf-append-image
$ npm install
## Usage
$ npm start path/to/file.pdf path/to/image.png
A new document with an image on the first page will be created in the current folder.
NOTE: only PNG image are supported.
## Author
[@iamdidev](https://github.com/iamdidev) (Dmitry "iamdi" Shvetsov)