Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

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 PrintFileDuplexable

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.

manualDuplex

manualDuplex: boolean = false

manualDuplexMessage

manualDuplexMessage: string = ""

printInReverseOrder

printInReverseOrder: boolean = false

Gets or sets whether pages are printed in reverse order.

printRange

printRange: string = ''

Gets or sets the print range.

Accessors

copies

  • 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

  • getContent(): Promise<Reader>

getProperties