5.20221.842
Wijmo API Module wijmo.pdf Wijmo API Module

wijmo.pdf Module

Defines the PdfDocument class and associated classes.

This module incorporates modified versions of the PDFKit and fontkit libraries.

Type aliases

PdfTagOrContent

PdfTagOrContent: IPdfTag | IPdfTagContent | function

Specifies elements that can be passed to the IPdfTag.add and PdfDocument.tag methods via the child parameter.

Functions

ptToPx

  • ptToPx(value: number): number
  • Converts a point unit value to a pixel unit value.

    Parameters

    • value: number

      The value to convert.

    Returns number

    The converted value.

pxToPt

  • pxToPt(value: number): number
  • Converts a pixel unit value to a point unit value.

    Parameters

    • value: number

      The value to convert.

    Returns number

    The converted value.

saveBlob

  • saveBlob(blob: Blob, fileName: string): void
  • Saves the Blob object as a file.

    Parameters

    • blob: Blob

      The Blob object to save.

    • fileName: string

      The name with which the file is saved.

    Returns void