File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
How to/Add Handwritten Signature Programmatically/src/app Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {
20
20
selector : 'app-root' ,
21
21
// specifies the template string for the PDF Viewer component
22
22
template : `<div class="content-wrapper">
23
- <button onClick={ addAnnotation} >Add Handwritten Signature programatically</button>
23
+ <button (click)=" addAnnotation()" >Add Handwritten Signature programatically</button>
24
24
<ejs-pdfviewer id="pdfViewer"
25
25
[documentPath]='document'
26
26
[resourceUrl]='resource'
@@ -43,16 +43,10 @@ import {
43
43
} )
44
44
export class AppComponent implements OnInit {
45
45
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' ; ;
47
47
ngOnInit ( ) : void {
48
48
}
49
49
50
- openBookmark ( ) {
51
- var viewer = ( < any > document . getElementById ( 'pdfViewer' ) ) . ej2_instances [ 0 ] ;
52
- // Open Bookmark pane.
53
- viewer . bookmarkViewModule . openBookmarkPane ( ) ;
54
- }
55
-
56
50
addAnnotation ( ) {
57
51
var viewer = ( < any > document . getElementById ( 'pdfViewer' ) ) . ej2_instances [ 0 ] ;
58
52
viewer . annotation . addAnnotation ( "HandWrittenSignature" , {
You can’t perform that action at this time.
0 commit comments