https://github.com/fifsky/html-to-pdf-action
HTML to PDF for github actions
https://github.com/fifsky/html-to-pdf-action
Last synced: 8 months ago
JSON representation
HTML to PDF for github actions
- Host: GitHub
- URL: https://github.com/fifsky/html-to-pdf-action
- Owner: fifsky
- License: mit
- Created: 2019-09-10T07:43:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T05:49:08.000Z (over 2 years ago)
- Last Synced: 2024-04-23T20:53:54.480Z (about 2 years ago)
- Language: HTML
- Size: 5.45 MB
- Stars: 23
- Watchers: 3
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTML to PDF
A [GitHub Action](https://github.com/features/actions) that converts a HTML file to PDF.
## ✨ Example Usage
```yml
- name: html to pdf
uses: fifsky/html-to-pdf-action@master
with:
htmlFile: ./public/index.html
outputFile: ./public/resume.pdf
pdfOptions: '{"format": "A4", "margin": {"top": "10mm", "left": "10mm", "right": "10mm", "bottom": "10mm"}}'
```
`pdfOptions` relate to [puppeteers page.pdf options](https://github.com/puppeteer/puppeteer/blob/main/docs/api/puppeteer.pdfoptions.md#pdfoptions-interface)