Skip to content
file-text

GitHub Action

Convert HTML to PDF

v1.1 Pre-release

Convert HTML to PDF

file-text

Convert HTML to PDF

Converts HTML files into PDF using chrome-headless-render-pdf

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Convert HTML to PDF

uses: markwilson/[email protected]

Learn more about this action in markwilson/html2pdf

Choose a version

html2pdf

Converts HTML files into PDF using chrome-headless-render-pdf.

Inputs

htmlPath

Required The file path of the HTML to convert. Default index.html.

pdfName

Required The PDF file name to use (excluding the .pdf extension). Default output.

Example usage

uses: markwilson/[email protected]
with:
  htmlPath: 'test.html'
  pdfName: 'test'