It throws the error “Uncaught (in promise) Error: exportAnnotations: Annotations are not available in the free viewer build of PDF.js Express. For full annotation support, please use the full version of PDF.js Express.”
I already tried this settings, but the error persists:
instance.disableFeatures([instance.UI.Feature.Annotations, instance.UI.Feature.NotesPanel, instance.UI.Feature.Redaction]);
instance.UI.setDefaultPrintOptions({ includeComments: false, includeAnnotations: false });