LukaszLapaj / html-to-pdf-action

HTML to PDF for github actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML to PDF

A GitHub Action that converts a HTML file to PDF.

Example Usage

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

Credits

About

HTML to PDF for github actions

License:MIT License


Languages

Language:HTML 50.3%Language:JavaScript 25.5%Language:Dockerfile 21.3%Language:Makefile 2.9%