Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Constructors

constructor

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

    Parameters

    • fileContent: any
    • fileContentType: FileSourceType
    • fileName: string

      The file name that will be created at the client side.

    • Optional copies: number

      The number of printing copies.

    Returns PrintFilePDF

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.

printAnnotations

printAnnotations: boolean = false

Gets or sets whether to print any annotations, if any, available in the PDF document.

printAsGrayscale

printAsGrayscale: boolean = false

Gets or sets whether to print the PDF document with color images, texts, or other objects as shades of gray.

printInReverseOrder

printInReverseOrder: boolean = false

Gets or sets whether pages are printed in reverse order.

printRange

printRange: string = ""

Gets or sets a subset of pages to print. It can be individual page numbers, a range, or a combination. For example: 1, 5-10, 25, 50. Default is an empty string which means print all pages.

printRotation

printRotation: PrintRotation = PrintRotation.None

Gets or sets the print rotation.

Accessors

copies

copies:

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

Methods

isValidRange

  • isValidRange(range: string): boolean
  • Parameters

    • range: string

    Returns boolean

serialize

  • serialize(): Promise<Reader>