WebViewer Version: 8.0.0
Please give a brief summary of your issue:
Unable to access WidgetAnnotation class and functions; code sample returns ‘typeof’ class instead of instance
We’re very new to PDFTron. Currently trying to apply styling to form fields, working from these support articles;
We’re working in Typescript, rather than pure JS.
When we try replicate the code from the samples, the ‘getCustomStyles’ and ‘getContainerCustomStyles’ functions aren’t recognised when we call it them on Annotations.WidgetAnnotation. It seems that this is returning ‘typeof WidgetAnnotation’, rather than an actual instance of the class.
Anyone able to offer any pointers?
Thanks in advance!