5.20193.637
wijmo.pdf Wijmo API Module

wijmo.pdf Module

Defines the PdfDocument class and associated classes.

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