/** * PdfDestination.ts class for EJ2-PDF */ import { IPdfWrapper, IPdfPrimitive } from '../../interfaces'; import { PointF, RectangleF } from '../drawing'; import { PdfPageBase } from '../pages'; import { PdfDestinationMode } from './enum'; import { DictionaryProperties } from '../input-output'; /** * `PdfDestination` class represents an anchor in the document * where bookmarks or annotations can direct when clicked. */ export declare class PdfDestination implements IPdfWrapper { /** * Internal variable for accessing fields from `DictionryProperties` class. * @private */ protected dictionaryProperties: DictionaryProperties; /** * Type of the `destination`. * @private */ private destinationMode; /** * `Zoom` factor. * @private * @default 0 */ private zoomFactor; /** * `Location` of the destination. * @default new PointF() with 0 ,0 as co-ordinates * @private */ private destinationLocation; /** * `Bounds` of the destination as RectangleF. * @default RectangleF.Empty * @private */ private bounds; /** * Parent `page` reference. * @private */ private pdfPage; /** * Pdf primitive representing `this` object. * @private */ private array; /** * Initializes a new instance of the `PdfDestination` class with page object. * @private */ constructor(page: PdfPageBase); /** * Initializes a new instance of the `PdfDestination` class with page object and location. * @private */ constructor(page: PdfPageBase, location: PointF); /** * Initializes a new instance of the `PdfDestination` class with page object and bounds. * @private */ constructor(page: PdfPageBase, rectangle: RectangleF); /** * Gets and Sets the `zoom` factor. * @private */ get zoom(): number; set zoom(value: number); /** * Gets and Sets the `page` object. * @private */ get page(): PdfPageBase; set page(value: PdfPageBase); /** * Gets and Sets the destination `mode`. * @private */ get mode(): PdfDestinationMode; set mode(value: PdfDestinationMode); /** * Gets and Sets the `location`. * @private */ get location(): PointF; set location(value: PointF); /** * `Translates` co-ordinates to PDF co-ordinate system (lower/left). * @private */ private pointToNativePdf; /** * `In fills` array by correct values. * @private */ private initializePrimitive; /** * Gets the `element` representing this object. * @private */ get element(): IPdfPrimitive; }