Options
All
  • Public
  • Public/Protected
  • All
Menu

It represents a file that will be printed at the client side.

Hierarchy

Index

Constructors

  • Creates an instance of the PrintFile class with the specified info.

    Parameters

    • fileContent: any

      The content of the file depending on the source type.

    • fileContentType: FileSourceType

      The source type of the file.

    • fileName: string

      The file name that will be created at the client side. It must include the file extension like .pdf, .txt, .doc, .xls, etc.

    • Optional copies: number

      The number of printing copies.

    Returns PrintFile

Properties

fileContent: any

Gets or sets the content of the file depending on the source type.

fileContentType: FileSourceType

Gets or sets the source type of the file.

fileName: string = ""

Gets or sets the file name that will be created at the client side. It must include the file extension like .pdf, .txt, .doc, .xls, etc.

Accessors

  • get copies(): number
  • set copies(value: number): void
  • Gets or sets the number of printing copies for this file. Default is 1.

    Returns number

  • Gets or sets the number of printing copies for this file. Default is 1.

    Parameters

    • value: number

    Returns void

Methods

  • getContent(): Promise<Blob>
  • Returns Promise<Blob>