Sha256: 28df96003c936f528eb5b95e5cd84435fb3e8e0bb2bad6e8ddc2efe65b886bd9

Contents?: true

Size: 1.85 KB

Versions: 1

Compression:

Stored size: 1.85 KB

Contents

'use strict';

/**
 * Chrome Page.printToPDF options.
 * Note: these require Chrome >= 60.
 *
 * @export
 * @interface ChromePrintOptions
 */
export interface ChromePrintOptions {
  /**
   * Paper orientation. Defaults to false.
   *
   * @type {boolean}
   * @memberof ChromePrintOptions
   */
  landscape?: boolean;

  /**
   * Display header and footer. Defaults to false.
   *
   * @type {boolean}
   * @memberof ChromePrintOptions
   */
  displayHeaderFooter?: boolean;

  /**
   * Print background graphics. Defaults to false.
   *
   * @type {boolean}
   * @memberof ChromePrintOptions
   */
  printBackground?: boolean;

  /**
   * Scale of the webpage rendering. Defaults to 1.
   *
   * @type {number}
   * @memberof ChromePrintOptions
   */
  scale?: number;

  /**
   * Paper width in inches. Defaults to 8.5 inches.
   *
   * @type {number}
   * @memberof ChromePrintOptions
   */
  paperWidth?: number;

  /**
   * Paper height in inches. Defaults to 11 inches.
   *
   * @type {number}
   * @memberof ChromePrintOptions
   */
  paperHeight?: number;

  /**
   * Top margin in inches. Defaults to 1cm (~0.4 inches).
   *
   * @type {number}
   * @memberof ChromePrintOptions
   */
  marginTop?: number;

  /**
   * Bottom margin in inches. Defaults to 1cm (~0.4 inches).
   *
   * @type {number}
   * @memberof ChromePrintOptions
   */
  marginBottom?: number;

  /**
   * Left margin in inches. Defaults to 1cm (~0.4 inches).
   *
   * @type {number}
   * @memberof ChromePrintOptions
   */
  marginLeft?: number;

  /**
   * Right margin in inches. Defaults to 1cm (~0.4 inches).
   *
   * @type {number}
   * @memberof ChromePrintOptions
   */
  marginRight?: number;

  /**
   * Paper ranges to print, e.g., '1-5, 8, 11-13'.
   * Defaults to the empty string, which means print all pages.
   *
   * @type {string}
   * @memberof ChromePrintOptions
   */
  pageRanges?: string;
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dragonfly_chrome_headless-0.2.0 node_modules/html-pdf-chrome/src/ChromePrintOptions.ts