Page

Page

This class provides information about a page of the specified PDF file, such as page number, height, width etc.

Methods

pageNumber() → {number}

Description:
  • Returns the page number of this Page, starting from 0.

Returns:

The page number.

Type
number

hasStructure() → {boolean}

Description:
  • Returns a boolean specifying whether the page has structure/tagging.

Returns:

True if the page has structure/tagging. False otherwise.

Type
boolean

isScanned() → {boolean}

Description:
  • Returns a boolean specifying whether the page is scanned.

Returns:

True if the page is scanned. False otherwise.

Type
boolean

width() → {number}

Description:
  • Returns the width of the page.

Returns:

Width of the page.

Type
number

height() → {number}

Description:
  • Returns the height of the page.

Returns:

Height of the page.

Type
number

content() → {Content}

Description:
  • Returns a Content instance that specifies content level properties of the PDF such as number of images, textual content etc.

Returns:

A Content instance.

Type
Content