import { IPdfWrapper, IPdfPrimitive } from '../../interfaces'; import { PdfColor, PdfBrush, PdfFont, PdfStringFormat } from '../graphics'; import { RectangleF } from '../drawing'; import { PdfPage, PdfPageBase } from '../pages'; import { PdfDictionary } from '../primitives'; import { DictionaryProperties } from '../input-output'; /** * `PdfAnnotation` class represents the base class for annotation objects. * @private */ export declare abstract class PdfAnnotation implements IPdfWrapper { /** * Specifies the Internal variable to store fields of `PdfDictionaryProperties`. * @private */ protected dictionaryProperties: DictionaryProperties; /** * `Color` of the annotation * @private */ private pdfColor; /** * `Bounds` of the annotation. * @private */ private rectangle; /** * Parent `page` of the annotation. * @private */ private pdfPage; /** * `Brush of the text` of the annotation. * @default new PdfSolidBrush(new PdfColor(0, 0, 0)) * @private */ private textBrush; /** * `Font of the text` of the annotation. * @default new PdfStandardFont(PdfFontFamily.TimesRoman, 10) * @private */ private textFont; /** * `StringFormat of the text` of the annotation. * @default new PdfStringFormat(PdfTextAlignment.Left) * @private */ private format; /** * `Text` of the annotation. * @private */ private content; /** * Internal variable to store `dictionary`. * @private */ private pdfDictionary; /** * To specifying the `Inner color` with which to fill the annotation * @private */ private internalColor; /** * `opacity or darkness` of the annotation. * @private * @default 1.0 */ private darkness; /** * `Color` of the annotation * @private */ get color(): PdfColor; set color(value: PdfColor); /** * To specifying the `Inner color` with which to fill the annotation * @private */ get innerColor(): PdfColor; set innerColor(value: PdfColor); /** * `bounds` of the annotation. * @private */ get bounds(): RectangleF; set bounds(value: RectangleF); /** * Parent `page` of the annotation. * @private */ get page(): PdfPage; /** * To specifying the `Font of the text` in the annotation. * @private */ get font(): PdfFont; set font(value: PdfFont); /** * To specifying the `StringFormat of the text` in the annotation. * @private */ get stringFormat(): PdfStringFormat; set stringFormat(value: PdfStringFormat); /** * To specifying the `Brush of the text` in the annotation. * @private */ get brush(): PdfBrush; set brush(value: PdfBrush); /** * `Text` of the annotation. * @private */ get text(): string; set text(value: string); /** * Internal variable to store `dictionary`. * @hidden */ get dictionary(): PdfDictionary; set dictionary(value: PdfDictionary); /** * Object initialization for `Annotation` class * @private */ constructor(); constructor(bounds: RectangleF); /** * `Initialize` the annotation event handler and specifies the type of the annotation. * @private */ protected initialize(): void; /** * Sets related `page` of the annotation. * @private */ setPage(page: PdfPageBase): void; /** * Handles the `BeginSave` event of the Dictionary. * @private */ beginSave(): void; /** * `Saves` an annotation. * @private */ protected save(): void; /** * Gets the `element`. * @private */ get element(): IPdfPrimitive; }