Skip to content

modern-pdf-lib


modern-pdf-lib / buildAnnotationDict

Function: buildAnnotationDict()

buildAnnotationDict(type, options): PdfDict

Defined in: src/annotation/pdfAnnotation.ts:145

Build an annotation dictionary from options.

Used internally by subclass factory methods to populate common annotation dictionary entries.

Parameters

type

AnnotationType

The annotation subtype.

options

AnnotationOptions

Creation options.

Returns

PdfDict

A populated PdfDict.

Released under the MIT License.