Skip to content

v0.6.0

Compare
Choose a tag to compare
@drudge drudge released this 09 Jul 01:52
· 15 commits to main since this release
  • Adds Get PDF operation

Options

  • File Name: Allows you to specify the filename of the output file.
  • Page Ranges field: Allows you to specify paper ranges to print, e.g. 1-5, 8, 11-13.
  • Scale: Allows you to scale the rendering of the web page. Amount must be between 0.1 and 2
  • Prefer CSS Page Size: Give any CSS @page size declared in the page priority over what is declared in the width or height or format option.
  • Format: Allows you to specify the paper format types when printing a PDF. eg: Letter, A4.
  • Height: Allows you to set the height of paper. You can pass in a number or a string with a unit.
  • Width: Allows you to set the width of paper. You can pass in a number or a string with a unit.
  • Landscape: Allows you to control whether to show the header and footer
  • Margin: Allows you to specify top, left, right, and bottom margin.
  • Display Header/Footer: Allows you to specify whether to show the header and footer.
  • Header Template: Allows you to specify the HTML template for the print header. Should be valid HTML with the following classes used to inject values into them:
    • date: Formatted print date
    • title: Document title
    • url: Document location
    • pageNumber Current page number
    • totalPages Total pages in the document
  • Footer Template: Allows you to specify the HTML template for the print footer. Should be valid HTML with the following classes used to inject values into them:
    • date: Formatted print date
    • title: Document title
    • url: Document location
    • pageNumber Current page number
    • totalPages Total pages in the document
  • Transparent Background: Allows you to hide the default white background and allows generate PDFs with transparency.
  • Background Graphic: Allows you to include background graphics.