You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add annotations as per this example.
But it balks in the "Type: 'Annot'"
No overload matches this call.
The last overload gave the following error.
Argument of type '{ Type: string; Subtype: string; Open: boolean; Name: string; Rect: number[]; Contents: PDFString; Color: RGB; }' is
not assignable to parameter of type 'LiteralArray'.
Object literal may only specify known properties, and 'Type' does not exist in type 'LiteralArray'.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to add annotations as per this example.
But it balks in the "Type: 'Annot'"
No overload matches this call.
The last overload gave the following error.
Argument of type '{ Type: string; Subtype: string; Open: boolean; Name: string; Rect: number[]; Contents: PDFString; Color: RGB; }' is
not assignable to parameter of type 'LiteralArray'.
Object literal may only specify known properties, and 'Type' does not exist in type 'LiteralArray'.
153 Type: 'Annot',
I'm assuming the way this is done has changed?
This is my code:
Beta Was this translation helpful? Give feedback.
All reactions