Hello,
I am using the Syncfusion Angular PDFViewer component in my
Angular application, and I need to disable the annotations that are imported
into the viewer using the viewer.importAnnotation() method. I have tried
setting the isLock property to true in the annotationSettings object, but it
does not seem to work.
Here's an example of my code:
import { PdfViewerComponent } from '@syncfusion/ej2-angular-pdfviewer';
@Component({
})
export class MyComponent implements OnInit {
annotationSettings = { isLock: true };
importAnnotations(): void {
var viewer = (<any>document.getElementById('pdfViewer')).ej2_instances[0] as PdfViewerComponent;
const _this = this;
viewer.importAnnotation(JSON.parse(_this.exportObject));
}
}
Is there a way to disable annotations in the PDFViewer
component after importing them using the viewer.importAnnotation() method? Any
help or guidance on this would be greatly appreciated. Thank you in advance.