https://github.com/skn-036/express-pdf-generator
Using typescript and puppeteer, a pdf file generator with options to add header footer and watermark in every page
https://github.com/skn-036/express-pdf-generator
Last synced: 3 months ago
JSON representation
Using typescript and puppeteer, a pdf file generator with options to add header footer and watermark in every page
- Host: GitHub
- URL: https://github.com/skn-036/express-pdf-generator
- Owner: skn-036
- Created: 2023-08-20T20:11:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-14T15:47:43.000Z (about 1 year ago)
- Last Synced: 2025-01-10T17:18:31.793Z (5 months ago)
- Language: TypeScript
- Size: 2.07 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express-pdf-generator
Using typescript and puppeteer, a pdf file generator with options to add header footer and watermark in every page.
# env variables
APP_URL=Base url to the file paths
# request url
http://127.0.0.1:5000/generate-pdf
# request method
POST
# request paramaters
absoute path to the header image file with respect to base url. for example, for a url https://picsum.photos/800/300, APP_URL in env file should be 'https://picsum.photos' and the header will be '/800/300'
```javascript
type RequestParams = {
header?: string, // absoute path to the header image.
body?: string, // html content of the pdf body
footer?: string, // absoute path to the footer image.
watermark?: string, // absoute path to the watermark image.
original_cv?: string, // absoute path to the watermark image.
};
```