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
The annotation dictionary.
resolver?
(ref) => PdfObject | undefined
Optional function to resolve indirect references.
Returns
A PdfAnnotation instance.