Skip to content

Webpage to PDF

Actions
Github Action to convert any webpage to a PDF document
v0.3.1
Latest
Star (13)

Webpage to PDF action

A GitHub Action to convert any webpage to a PDF document.

Internally uses Puppeteer's mojo to get the page and render it to print it to PDF.

Inputs

  • webPageURL: This is the URL of the page. Required.
  • outputFile: Path to the generated PDF file. Required.
  • usePuppeteer: If you need to use Puppeteer or your chrome.
  • useScreen: If you want to use the option emulateMediaType to generate with screen media and not print media
  • pdfOptions: PDF options as described on Puppeteer's documentation. This is optional.

✨ Example Usage

- name: html to pdf
  uses: misaelnieto/web_to_pdf_action@master
  with:
    webPageURL: https://www.noenieto.com/resume/
    outputFile: ./path/to/my/resume.pdf
    usePuppeteer: true
    useScreen: true
    pdfOptions: '{"format": "Letter", "margin": {"top": "10mm", "left": "10mm", "right": "10mm", "bottom": "10mm"}}'

You may also like ...

Fifsky's HTML to PDF action.

Webpage to PDF is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github Action to convert any webpage to a PDF document
v0.3.1
Latest

Webpage to PDF is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.