PDFAnnotation
class PDFAnnotation extends Userdata<"pdf_annot"> { }
_doc: PDFDocument;
addBorderDashItem(v: number): void;
addInkListStroke(): void;
addInkListStrokeVertex(v: Point): void;
addQuadPoint(quad: Quad): void;
addVertex(vertex: Point): void;
applyRedaction(black_boxes?: number, image_method?: number): void;
clearBorderDash(): void;
clearInkList(): void;
clearQuadPoints(): void;
clearVertices(): void;
getAuthor(): string;
getBorderDashCount(): number;
getBorderDashItem(idx: number): number;
getBorderDashPattern(): any[];
getBorderEffect(): PDFAnnotationBorderEffect;
getBorderEffectIntensity(): number;
getBorderStyle(): PDFAnnotationBorderStyle;
getBorderWidth(): number;
getBounds(): Rect;
getColor(): Color;
getContents(): string;
getCreationDate(): Date;
getDefaultAppearance(): {
font: string;
size: number;
color: Color;
};getFileSpec(): PDFObject;
getFlags(): number;
getHiddenForEditing(): boolean;
getIcon(): string;
getInkList(): Point[][];
getIntent(): PDFAnnotationIntent;
getInteriorColor(): Color;
getIsOpen(): boolean;
getLanguage(): string;
getLine(): Point[];
getLineEndingStyles(): {
start: PDFAnnotationLineEndingStyle;
end: PDFAnnotationLineEndingStyle;
};getModificationDate(): Date;
getObject(): PDFObject;
getOpacity(): number;
getPopup(): Rect;
getQuadding(): number;
getQuadPoints(): Quad[];
getRect(): Rect;
getType(): PDFAnnotationType;
getVertices(): Point[];
hasAuthor(): boolean;
hasBorder(): boolean;
hasBorderEffect(): boolean;
hasFilespec(): boolean;
hasIcon(): boolean;
hasInkList(): boolean;
hasInteriorColor(): boolean;
hasLine(): boolean;
hasLineEndingStyles(): boolean;
hasOpen(): boolean;
hasQuadPoints(): boolean;
hasRect(): boolean;
hasVertices(): boolean;
setAppearance(
appearance: string | null,
state: string | null,
transform: Matrix,
bbox: Rect,
resources: any,
contents: AnyBuffer,
): void;setAppearanceFromDisplayList(
appearance: string | null,
state: string | null,
transform: Matrix,
list: DisplayList,
): void;setAuthor(text: string): void;
setBorderDashPattern(list: number[]): void;
setBorderEffect(value: PDFAnnotationBorderEffect): void;
setBorderEffectIntensity(value: number): void;
setBorderStyle(value: PDFAnnotationBorderStyle): void;
setBorderWidth(value: number): void;
setColor(color: Color): void;
setContents(text: string): void;
setCreationDate(date: Date): void;
setDefaultAppearance(
fontName: string,
size: number,
color: Color,
): void;setFlags(flags: number): void;
setHiddenForEditing(isHidden: boolean): void;
setIcon(text: string): void;
setInkList(inklist: Point[][]): void;
setIntent(value: PDFAnnotationIntent): void;
setInteriorColor(color: Color): void;
setIsOpen(isOpen: boolean): void;
setLanguage(lang: string): void;
setLine(a: Point, b: Point): void;
setLineEndingStyles(start: PDFAnnotationLineEndingStyle, end: PDFAnnotationLineEndingStyle): void;
setModificationDate(date: Date): void;
setOpacity(opacity: number): void;
setQuadding(quadding: number): void;
setQuadPoints(quadlist: Quad[]): void;
setVertices(vertexlist: Point[]): void;
toDisplayList(): DisplayList;
update(): boolean;
static readonly ANNOT_TYPES: PDFAnnotationType[];
static readonly BORDER_EFFECT: PDFAnnotationBorderEffect[];
static readonly BORDER_STYLE: PDFAnnotationBorderStyle[];
static readonly INTENT: PDFAnnotationIntent[];
static readonly IS_HIDDEN: number;
static readonly IS_INVISIBLE: number;
static readonly IS_LOCKED: number;
static readonly IS_LOCKED_CONTENTS: number;
static readonly IS_NO_ROTATE: number;
static readonly IS_NO_VIEW: number;
static readonly IS_NO_ZOOM: number;
static readonly IS_PRINT: number;
static readonly IS_READ_ONLY: number;
static readonly IS_TOGGLE_NO_VIEW: number;
static readonly LINE_ENDING: PDFAnnotationLineEndingStyle[];
§Properties
§
_doc: PDFDocument
[src]§Methods
§
getLineEndingStyles(): {
[src]start: PDFAnnotationLineEndingStyle;
end: PDFAnnotationLineEndingStyle;
}§
setAppearanceFromDisplayList(appearance: string | null, state: string | null, transform: Matrix, list: DisplayList): void
[src]§
setLineEndingStyles(start: PDFAnnotationLineEndingStyle, end: PDFAnnotationLineEndingStyle): void
[src]§
toDisplayList(): DisplayList
[src]