api/utils/pdf

Module for pdf export

Description:
  • Module for pdf export

Source:

Methods

(static) renderPDF(html, callback, options, puppeteerArgs, remoteContent)

Description:
  • Function to generate pdf from html

Source:
Parameters:
Name Type Description
html string

html text to be converted to html

callback function

callback function after pdf is generated

options object

pdf options, default null

puppeteerArgs object

pupeteer arguments, default null

remoteContent boolean

if it is set base64 string of html content buffer is set as pdf content, default true