Hierarchy

  • Page

Constructors

  • Parameters

    • doc: Doc
    • documentName: string
    • name: string

    Returns Page

Properties

DEFAULT_PADDING: WidthHeightInput = '1cm'
DEFAULT_SIZE: PageSize = 'A4'
PAGE_ISO_SIZE_TO_WIDTH_HEIGHT_MM: {
    A0: {
        h: number;
        w: number;
    };
    A1: {
        h: number;
        w: number;
    };
    A2: {
        h: number;
        w: number;
    };
    A3: {
        h: number;
        w: number;
    };
    A4: {
        h: number;
        w: number;
    };
    A5: {
        h: number;
        w: number;
    };
    A6: {
        h: number;
        w: number;
    };
    A7: {
        h: number;
        w: number;
    };
} = ...

Type declaration

  • A0: {
        h: number;
        w: number;
    }
    • h: number
    • w: number
  • A1: {
        h: number;
        w: number;
    }
    • h: number
    • w: number
  • A2: {
        h: number;
        w: number;
    }
    • h: number
    • w: number
  • A3: {
        h: number;
        w: number;
    }
    • h: number
    • w: number
  • A4: {
        h: number;
        w: number;
    }
    • h: number
    • w: number
  • A5: {
        h: number;
        w: number;
    }
    • h: number
    • w: number
  • A6: {
        h: number;
        w: number;
    }
    • h: number
    • w: number
  • A7: {
        h: number;
        w: number;
    }
    • h: number
    • w: number
_containers: AnyContainer[] = []
_doc: Doc
_document: string
_height: number
_orientation: PageOrientation = 'landscape'
_padding: number[]
_size: PageSize
_units: DocUnits
_variables: {
    [key: string]: any;
} = {}

Type declaration

  • [key: string]: any
_width: number
name: string

Methods

  • Parameters

    • name: string

    Returns boolean

  • Transform given ISO page size (A0-A7) to units in document units

    Parameters

    Returns void

  • Returns {
        _entity: string;
        containers: any[];
        docUnits: DocUnits;
        height: number;
        name: string;
        orientation: PageOrientation;
        padding: number[];
        size: PageSize;
        width: number;
    }

    • _entity: string
    • containers: any[]
    • docUnits: DocUnits
    • height: number
    • name: string
    • orientation: PageOrientation
    • padding: number[]
    • size: PageSize
    • width: number

Generated using TypeDoc