Skip to content

modern-pdf-lib


modern-pdf-lib / annotationFromDict

Function: annotationFromDict()

annotationFromDict(dict, resolver?): PdfAnnotation

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

Create a PdfAnnotation from an existing dictionary.

Parameters

dict

PdfDict

The annotation dictionary.

resolver?

(ref) => PdfObject | undefined

Optional function to resolve indirect references.

Returns

PdfAnnotation

A PdfAnnotation instance.

Released under the MIT License.