Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PDFPage

class PDFPage extends Page {
constructor(doc: PDFDocument, pointer: Pointer<"any_page">);
_annots: PDFAnnotation[] | null;
_widgets: PDFWidget[] | null;
 
applyRedactions(black_boxes?: number, image_method?: number): void;
createAnnotation(type: PDFAnnotationType): PDFAnnotation;
deleteAnnotation(annot: PDFAnnotation): void;
getAnnotations(): PDFAnnotation[];
getObject(): PDFObject;
getTransform(): Matrix;
getWidgets(): PDFWidget[];
setPageBox(box: PageBox, rect: Rect): void;
toPixmap(
matrix: Matrix,
colorspace: ColorSpace,
alpha?: boolean,
showExtras?: boolean,
usage?: string,
box?: PageBox,
): Pixmap;
update(): boolean;
 
static readonly REDACT_IMAGE_NONE: number;
static readonly REDACT_IMAGE_PIXELS: number;
static readonly REDACT_IMAGE_REMOVE: number;
}

§Extends

§Constructors

§
new PDFPage(doc: PDFDocument, pointer: Pointer<"any_page">)
[src]

§Properties

§
_annots: PDFAnnotation[] | null
[src]
§
_widgets: PDFWidget[] | null
[src]

§Methods

§
applyRedactions(black_boxes?: number, image_method?: number): void
[src]
§
createAnnotation(type: PDFAnnotationType): PDFAnnotation
[src]
§
deleteAnnotation(annot: PDFAnnotation): void
[src]
§
getAnnotations(): PDFAnnotation[]
[src]
§
getObject(): PDFObject
[src]
§
getTransform(): Matrix
[src]
§
getWidgets(): PDFWidget[]
[src]
§
setPageBox(box: PageBox, rect: Rect): void
[src]
§
toPixmap(matrix: Matrix, colorspace: ColorSpace, alpha?: boolean, showExtras?: boolean, usage?: string, box?: PageBox): Pixmap
[src]
§
update(): boolean
[src]

§Static Properties

§
REDACT_IMAGE_NONE: number
[src]
§
REDACT_IMAGE_PIXELS: number
[src]
§
REDACT_IMAGE_REMOVE: number
[src]