From 9760120a58e87ed053828c63b4d3292da5f7e2ca Mon Sep 17 00:00:00 2001 From: SF4524LogeshKumar Date: Thu, 4 Sep 2025 18:18:46 +0530 Subject: [PATCH 1/2] 123: Updated Sample on How to Handle Line Angle Constraints to Annotation Drawing. --- .../index.html | 37 +++++++++++++++++++ .../index.js | 9 +++++ 2 files changed, 46 insertions(+) create mode 100644 How to/Handle Line Angle Constraints to Annotation Drawing/index.html create mode 100644 How to/Handle Line Angle Constraints to Annotation Drawing/index.js diff --git a/How to/Handle Line Angle Constraints to Annotation Drawing/index.html b/How to/Handle Line Angle Constraints to Annotation Drawing/index.html new file mode 100644 index 0000000..f30ea01 --- /dev/null +++ b/How to/Handle Line Angle Constraints to Annotation Drawing/index.html @@ -0,0 +1,37 @@ + + EJ2 PDF Viewer + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + \ No newline at end of file diff --git a/How to/Handle Line Angle Constraints to Annotation Drawing/index.js b/How to/Handle Line Angle Constraints to Annotation Drawing/index.js new file mode 100644 index 0000000..0fbee5b --- /dev/null +++ b/How to/Handle Line Angle Constraints to Annotation Drawing/index.js @@ -0,0 +1,9 @@ +var pdfviewer = new ej.pdfviewer.PdfViewer({ + documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf', + resourceUrl: "https://cdn.syncfusion.com/ej2/31.1.1/dist/ej2-pdfviewer-lib", + // To enable the annotation drawing options + annotationDrawingOptions : {enableLineAngleConstraints : true, restrictLineAngleTo: 90} +}); +ej.pdfviewer.PdfViewer.Inject(ej.pdfviewer.TextSelection, ej.pdfviewer.TextSearch, ej.pdfviewer.Print, ej.pdfviewer.Navigation, ej.pdfviewer.Toolbar, + ej.pdfviewer.Magnification, ej.pdfviewer.Annotation, ej.pdfviewer.FormDesigner, ej.pdfviewer.FormFields, ej.pdfviewer.PageOrganizer); + pdfviewer.appendTo('#PdfViewer'); \ No newline at end of file From c1ef15161590be5d59c8702bc8a4aadf7fecbc88 Mon Sep 17 00:00:00 2001 From: SF4524LogeshKumar Date: Mon, 8 Sep 2025 11:58:25 +0530 Subject: [PATCH 2/2] 980142: Updated proper version Line Angle constraint to Annotation Drawing --- .../index.html | 22 +++++++++---------- .../index.js | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/How to/Handle Line Angle Constraints to Annotation Drawing/index.html b/How to/Handle Line Angle Constraints to Annotation Drawing/index.html index f30ea01..6ce55ed 100644 --- a/How to/Handle Line Angle Constraints to Annotation Drawing/index.html +++ b/How to/Handle Line Angle Constraints to Annotation Drawing/index.html @@ -4,19 +4,19 @@ - - - - - - - - - - + + + + + + + + + + - + diff --git a/How to/Handle Line Angle Constraints to Annotation Drawing/index.js b/How to/Handle Line Angle Constraints to Annotation Drawing/index.js index 0fbee5b..08a5ddf 100644 --- a/How to/Handle Line Angle Constraints to Annotation Drawing/index.js +++ b/How to/Handle Line Angle Constraints to Annotation Drawing/index.js @@ -1,6 +1,6 @@ var pdfviewer = new ej.pdfviewer.PdfViewer({ documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf', - resourceUrl: "https://cdn.syncfusion.com/ej2/31.1.1/dist/ej2-pdfviewer-lib", + resourceUrl: "https://cdn.syncfusion.com/ej2/31.1.17/dist/ej2-pdfviewer-lib", // To enable the annotation drawing options annotationDrawingOptions : {enableLineAngleConstraints : true, restrictLineAngleTo: 90} });