Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents the view of PDF Page in the app.

Hierarchy

  • PageView

Index

Constructors

constructor

  • new PageView(fxPageView: fxPageView): PageView
  • Parameters

    • fxPageView: fxPageView

    Returns PageView

Properties

fxPageView

fxPageView: fxPageView

Methods

deviceToRect

  • deviceToRect(deviceRect: Rect): Promise<Rect>
  • Transform a rectangle from device space to user space.

    Parameters

    • deviceRect: Rect

    Returns Promise<Rect>

getClientPoint

  • getClientPoint(x: number, y: number): Promise<[number, number]>
  • Get the client point

    Parameters

    • x: number
    • y: number

    Returns Promise<[number, number]>

getCurrentMatrix

  • getCurrentMatrix(): Promise<Matrix>
  • Get page matrix

    Returns Promise<Matrix>

getCurrentVisibleRect

  • getCurrentVisibleRect(): Promise<VisibleRect>
  • Gets the current visible region of specified page view.

    Returns Promise<VisibleRect>

getDoc

  • getDoc(): Promise<null | Doc>
  • Get the Doc.

    Returns Promise<null | Doc>

getDocView

  • getDocView(): Promise<null | DocView>
  • Get the DocView of the PageView.

    Returns Promise<null | DocView>

getPageIndex

  • getPageIndex(): Promise<number>
  • Get page index.

    Returns Promise<number>

getPageInfoByIndex

  • getPageInfoByIndex(pageNum?: number): Promise<Object>
  • Get page info by index.

    Parameters

    • pageNum: number = 0

      page numbner.

    Returns Promise<Object>

    page info.

getPageRect

  • getPageRect(): Promise<Rect>
  • Get the page rect

    Returns Promise<Rect>

getPageScale

  • getPageScale(): Promise<number>
  • Get the scale of the page.

    Returns Promise<number>

getPageVisibleRect

  • getPageVisibleRect(): Promise<Rect>
  • Get the page Visible Rect

    Returns Promise<Rect>

rectToDevice

  • rectToDevice(pdfRect: Rect): Promise<Rect>
  • The page view for which the rectange is transformed from user space to device space.

    Parameters

    • pdfRect: Rect

      A pointer to user space rectange whose cordinates are transformed to device space.

    Returns Promise<Rect>

viewerPointToPDFPoint

  • viewerPointToPDFPoint(x: number, y: number): Promise<{ x: number; y: number }>
  • Convert point of viewer to pdf point.

    Parameters

    • x: number
    • y: number

    Returns Promise<{ x: number; y: number }>