• Deprecated

    Please use createPdfFromHtml instead. Resource Components will be no longer supported in the future!

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

    Type Parameters

    • T extends string

    Parameters

    • resourceCmp: ResourceComponent<T>

      Component which contains the resource

    • resourceName: T extends T ? T : never

      Name of the resource to which the generated PDF should be uploaded

    • html: string

      The HTML itself which needs to be converted to a PDF

    • Optional pdfOptions: Html2PdfOptions

      PDF generation options

    Returns Promise<void>

Generated using TypeDoc