Skip to content

frnode/html-to-pdf-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

HTML to PDF

A GitHub Action that converts a HTML file to PDF.

✨ Example Usage

- name: html to pdf
  uses: frnode/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

About

HTML to PDF for github actions

Resources

License

Stars

Watchers

Forks

Languages

  • HTML 88.9%
  • JavaScript 9.0%
  • Makefile 1.1%
  • Dockerfile 1.0%