Skip to content

Commit bb8fc18

Browse files
897552: Modified version
1 parent caacd12 commit bb8fc18

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

How to/Add Handwritten Signature Programmatically/src/app/app.component.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
selector: 'app-root',
2121
// specifies the template string for the PDF Viewer component
2222
template: `<div class="content-wrapper">
23-
<button onClick={addAnnotation}>Add Handwritten Signature programatically</button>
23+
<button (click)="addAnnotation()">Add Handwritten Signature programatically</button>
2424
<ejs-pdfviewer id="pdfViewer"
2525
[documentPath]='document'
2626
[resourceUrl]='resource'
@@ -43,16 +43,10 @@ import {
4343
})
4444
export class AppComponent implements OnInit {
4545
public document = 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf';
46-
public resource: string = 'https://cdn.syncfusion.com/ej2/24.1.41/dist/ej2-pdfviewer-lib';;
46+
public resource: string = 'https://cdn.syncfusion.com/ej2/27.1.48/dist/ej2-pdfviewer-lib';;
4747
ngOnInit(): void {
4848
}
4949

50-
openBookmark() {
51-
var viewer = (<any>document.getElementById('pdfViewer')).ej2_instances[0];
52-
// Open Bookmark pane.
53-
viewer.bookmarkViewModule.openBookmarkPane();
54-
}
55-
5650
addAnnotation() {
5751
var viewer = (<any>document.getElementById('pdfViewer')).ej2_instances[0];
5852
viewer.annotation.addAnnotation("HandWrittenSignature", {

0 commit comments

Comments
 (0)