@@ -22,14 +22,30 @@ See the [Filling PDF Forms](./form-filling) page for full details.
2222Use the following code-snippet to enable form-filling by injecting ` FormFields ` Module.
2323
2424``` ts
25- import { PdfViewer , Toolbar , Magnification , Navigation , Annotation , LinkAnnotation ,
26- ThumbnailView , BookmarkView , TextSelection ,
27- TextSearch , FormFields } from ' @syncfusion/ej2-pdfviewer' ;
28- PdfViewer .Inject (Toolbar , Magnification , Navigation , Annotation , LinkAnnotation ,
29- ThumbnailView , BookmarkView , TextSelection , TextSearch , FormFields );
25+ import {
26+ PdfViewer ,
27+ FormFields ,
28+ Toolbar ,
29+ Magnification ,
30+ Navigation ,
31+ Annotation ,
32+ TextSelection ,
33+ TextSearch ,
34+ } from ' @syncfusion/ej2-pdfviewer' ;
35+ PdfViewer .Inject (
36+ FormFields ,
37+ Toolbar ,
38+ Magnification ,
39+ Navigation ,
40+ Annotation ,
41+ TextSelection ,
42+ TextSearch
43+ );
3044let pdfviewer: PdfViewer = new PdfViewer ();
31- pdfviewer .documentPath = " https://cdn.syncfusion.com/content/pdf/form-filling-document.pdf" ;
32- pdfviewer .resourceUrl = " https://cdn.syncfusion.com/ej2/31.1.23/dist/ej2-pdfviewer-lib" ;
45+ pdfviewer .documentPath =
46+ ' https://cdn.syncfusion.com/content/pdf/form-filling-document.pdf' ;
47+ pdfviewer .resourceUrl =
48+ ' https://cdn.syncfusion.com/ej2/31.1.23/dist/ej2-pdfviewer-lib' ;
3349pdfviewer .appendTo (' #PdfViewer' );
3450```
3551
@@ -48,14 +64,32 @@ See the [Form Designer](./form-designer) page for full details.
4864Use the following Code-snippet to enable Form Designer by injecting ` FormDesigner ` Module.
4965
5066``` ts
51- import { PdfViewer , Toolbar , Magnification , Navigation , Annotation , LinkAnnotation ,
52- ThumbnailView , BookmarkView , TextSelection , TextSearch ,
53- FormFields , FormDesigner , TextFieldSettings } from ' @syncfusion/ej2-pdfviewer' ;
54- PdfViewer .Inject (Toolbar , Magnification , Navigation , Annotation , LinkAnnotation ,
55- ThumbnailView , BookmarkView , TextSelection , TextSearch , FormFields , FormDesigner );
67+ import {
68+ PdfViewer ,
69+ FormFields ,
70+ FormDesigner ,
71+ Toolbar ,
72+ Magnification ,
73+ Navigation ,
74+ Annotation ,
75+ TextSelection ,
76+ TextSearch ,
77+ } from ' @syncfusion/ej2-pdfviewer' ;
78+ PdfViewer .Inject (
79+ FormFields ,
80+ FormDesigner ,
81+ Toolbar ,
82+ Magnification ,
83+ Navigation ,
84+ Annotation ,
85+ TextSelection ,
86+ TextSearch
87+ );
5688let pdfviewer: PdfViewer = new PdfViewer ();
57- pdfviewer .documentPath = " https://cdn.syncfusion.com/content/pdf/form-filling-document.pdf" ;
58- pdfviewer .resourceUrl = " https://cdn.syncfusion.com/ej2/31.1.23/dist/ej2-pdfviewer-lib" ;
89+ pdfviewer .documentPath =
90+ ' https://cdn.syncfusion.com/content/pdf/form-filling-document.pdf' ;
91+ pdfviewer .resourceUrl =
92+ ' https://cdn.syncfusion.com/ej2/31.1.23/dist/ej2-pdfviewer-lib' ;
5993pdfviewer .appendTo (' #PdfViewer' );
6094```
6195
0 commit comments