ComPDFKit Web SDK
    Preparing search index...

    Class PageInfo

    Size, matrix, rotation, id and number of a page, for assembling page information yourself.

    Index
    • Creates page information.

      Parameters

      • width: number

        Page width in PDF points.

      • height: number

        Page height in PDF points.

      Returns PageInfo

    • Copies the page information.

      Returns PageInfo

      A new object with the same values; links is shared.

    • Replaces size, matrix, rotation, id and page number with the given data. Missing matrix becomes null and missing rotation 0.

      Parameters

      • data: PageInfoData

        The page data.

      Returns void

    height: number

    Page height in PDF points.

    id?: string

    Page id.

    links: unknown[]

    Links on the page; empty by default.

    matrix: unknown

    Page matrix; null when not set.

    pageNum?: string | number

    Page number.

    rotation: number

    Page rotation. Defaults to 0.

    text: string | null

    Page text; null when not set.

    width: number

    Page width in PDF points.