UNPKG

ngx-extended-pdf-viewer

Version:

Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.

39 lines (38 loc) 963 B
import { PDFPageView } from '../options/pdf_page_view'; import { TextLayerBuilder } from '../options/text-layer-builder'; export type PageViewportParameters = { /** * - The xMin, yMin, xMax and * yMax coordinates. */ viewBox: Array<number>; /** * - The scale of the viewport. */ scale: number; /** * - The rotation, in degrees, of the viewport. */ rotation: number; /** * - The horizontal, i.e. x-axis, offset. The * default value is `0`. */ offsetX: number | undefined; /** * - The vertical, i.e. y-axis, offset. The * default value is `0`. */ offsetY: number | undefined; /** * - If true, the y-axis will not be flipped. * The default value is `false`. */ dontFlip: boolean | undefined; }; export interface TextLayerRenderedEvent { source: PDFPageView; pageNumber: number; layer: TextLayerBuilder; error?: unknown; }