Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • 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

fileContent: any

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

fileContentType

fileContentType: FileSourceType

Gets or sets the source type of the file.

fileName

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

copies

copies:

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

Methods

serialize

  • serialize(): Promise<Reader>
  • Returns Promise<Reader>