@@ -89,6 +89,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
8989
9090let viewer: PdfViewer = new PdfViewer ({
9191 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
92+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
9293 annotationAdd : function (args : any ) {
9394 console .log (' Annotation added with ID: ' + args .annotationId );
9495 console .log (' Annotation type: ' + args .annotationType );
@@ -151,6 +152,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
151152
152153let viewer: PdfViewer = new PdfViewer ({
153154 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
155+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
154156 annotationDoubleClick : function (args : any ) {
155157 console .log (' Annotation double-clicked on page: ' + args .pageIndex );
156158 }
@@ -212,6 +214,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
212214
213215let viewer: PdfViewer = new PdfViewer ({
214216 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
217+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
215218 annotationMouseLeave : function (args : any ) {
216219 console .log (' Annotation mouse leave event is triggered for annotation with ID: ' + args .pageIndex );
217220 }
@@ -273,6 +276,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
273276
274277let viewer: PdfViewer = new PdfViewer ({
275278 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
279+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
276280 annotationMouseover : function (args : any ) {
277281 console .log (' Annotation mouse over event is triggered for annotation with ID: ' + args .annotationId );
278282 }
@@ -334,6 +338,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
334338
335339let viewer: PdfViewer = new PdfViewer ({
336340 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
341+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
337342 annotationMove : function (args : any ) {
338343 console .log (' Annotation moved. ID: ' + args .annotationId + ' on page ' + args .pageIndex );
339344 }
@@ -395,6 +400,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
395400
396401let viewer: PdfViewer = new PdfViewer ({
397402 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
403+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
398404 annotationMoving : function (args : any ) {
399405 console .log (' Annotation is being moved. Current Action: ' + args .currentPosition );
400406 }
@@ -456,6 +462,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
456462
457463let viewer: PdfViewer = new PdfViewer ({
458464 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
465+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
459466 annotationPropertiesChange : function (args : any ) {
460467 console .log (' Annotation properties changed for ID: ' + args .annotationId );
461468 console .log (' isThicknessChanged: ' + args .isThicknessChanged );
@@ -518,6 +525,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
518525
519526let viewer: PdfViewer = new PdfViewer ({
520527 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
528+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
521529 annotationRemove : function (args : any ) {
522530 console .log (' Annotation removed with ID: ' + args .annotationId );
523531 }
@@ -579,6 +587,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
579587
580588let viewer: PdfViewer = new PdfViewer ({
581589 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
590+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
582591 annotationResize : function (args : any ) {
583592 console .log (' Annotation resized. ID: ' + args .annotationId );
584593 }
@@ -640,6 +649,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
640649
641650let viewer: PdfViewer = new PdfViewer ({
642651 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
652+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
643653 annotationSelect : (args : any ) => {
644654 console .log (' Annotation selected with ID: ' + args .annotationId );
645655 }
@@ -701,6 +711,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
701711
702712let viewer: PdfViewer = new PdfViewer ({
703713 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
714+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
704715 annotationUnselect : function (args : any ) {
705716 console .log (' Annotation unselected with ID: ' + args .annotationId );
706717 }
@@ -762,6 +773,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
762773
763774let viewer: PdfViewer = new PdfViewer ({
764775 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
776+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
765777 beforeAddFreeText : function (args : any ) {
766778 console .log (' Before adding free text on page: ' + args .pageIndex );
767779 // Set args.cancel to true to prevent adding the free text annotation
@@ -827,6 +839,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
827839
828840let viewer: PdfViewer = new PdfViewer ({
829841 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
842+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
830843 addSignature : function (args : any ) {
831844 console .log (' Signature added to page: ' + args .pageIndex );
832845 }
@@ -888,6 +901,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
888901
889902let viewer: PdfViewer = new PdfViewer ({
890903 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
904+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
891905 removeSignature : function (args : any ) {
892906 console .log (' Signature removed from page: ' + args .pageIndex );
893907 }
@@ -949,6 +963,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
949963
950964let viewer: PdfViewer = new PdfViewer ({
951965 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
966+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
952967 resizeSignature : function (args : any ) {
953968 console .log (' Signature resized on page ' + args .pageIndex );
954969 }
@@ -1010,6 +1025,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
10101025
10111026let viewer: PdfViewer = new PdfViewer ({
10121027 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
1028+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
10131029 signaturePropertiesChange : function (args : any ) {
10141030 console .log (' Signature properties changed on page ' + args .pageIndex );
10151031 }
@@ -1071,6 +1087,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
10711087
10721088let viewer: PdfViewer = new PdfViewer ({
10731089 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
1090+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
10741091 signatureSelect : function (args : any ) {
10751092 console .log (' Signature selected on page ' + args .pageIndex );
10761093 }
@@ -1132,6 +1149,7 @@ PdfViewer.Inject( Toolbar,Magnification, Navigation, LinkAnnotation,ThumbnailVie
11321149
11331150let viewer: PdfViewer = new PdfViewer ({
11341151 documentPath: ' https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf' ,
1152+ resourceUrl: ' https://cdn.syncfusion.com/ej2/27.2.2/dist/ej2-pdfviewer-lib' ,
11351153 signatureUnselect : function (args : any ) {
11361154 console .log (' Signature unselected on page ' + args .pageIndex );
11371155 }
0 commit comments