• Converts a given HTML to PDF and uploads the resulting pdf to the given resource

    Returns

    The url of the PDF if successful

    Parameters

    • name: string

      Name of the file to which the generated PDF should be uploaded. Can be used in Hive with configuration.GetFile("")

    • html: string

      The HTML itself which needs to be converted to a PDF

    • Optional displayName: string

      Optional name which will be used when downloading the file

    • Optional pdfOptions: Html2PdfOptions

      PDF generation options

    Returns Promise<string | undefined>

Generated using TypeDoc