From 6404bf72e63475a75511b47ffd728b5bffdbfcd3 Mon Sep 17 00:00:00 2001 From: sameerkhan001 Date: Thu, 18 Dec 2025 18:11:46 +0530 Subject: [PATCH] 999358-hotfix: Added Final feedback changes. --- .../PDF/PDF-Library/javascript/Annotations.md | 8 +- .../PDF/PDF-Library/javascript/Bookmarks.md | 48 +++--- .../Create-PDF-document-asp-net-mvc.md | 2 +- .../Create-PDF-document-javascript.md | 4 +- .../Create-PDF-document-typescript.md | 32 ++-- .../javascript/Create-PDF-document-vue.md | 33 ++-- .../PDF/PDF-Library/javascript/FormFields.md | 105 ++---------- .../PDF/PDF-Library/javascript/Redaction.md | 14 +- .../PDF-Library/javascript/Text-Extraction.md | 2 +- .../PDF/PDF-Library/javascript/Watermarks.md | 154 ------------------ 10 files changed, 84 insertions(+), 318 deletions(-) diff --git a/Document-Processing/PDF/PDF-Library/javascript/Annotations.md b/Document-Processing/PDF/PDF-Library/javascript/Annotations.md index 9c6aaf6bd..d87595ded 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Annotations.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Annotations.md @@ -1301,7 +1301,7 @@ N> Setting `document.flatten = true;` flattens all interactive elements in the P ## Importing annotations -This example demonstrates how to import annotations into a PDF document using the PdfDocument. `importAnnotations` method. The DataFormat enum specifies the format of the annotation data being imported, such as FDF, XFDF, JSON, or XML. +This example demonstrates how to import annotations into a PDF document using the `importAnnotations` method. The DataFormat enum specifies the format of the annotation data being imported, such as FDF, XFDF, JSON, or XML. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -1333,7 +1333,7 @@ document.destroy(); ## Exporting annotations -This example demonstrates how to export annotations from a PDF document using the PdfDocument.exportAnnotations method. The DataFormat enum specifies the format of the annotation data being exported, such as FDF, XFDF, JSON, or XML. +This example demonstrates how to export annotations from a PDF document using the `exportAnnotations` method. The DataFormat enum specifies the format of the annotation data being exported, such as FDF, XFDF, JSON, or XML. {% tabs %} {% highlight typescript tabtitle="TypeScript" %} @@ -1345,7 +1345,7 @@ let document: PdfDocument = new PdfDocument(data); let settings: PdfAnnotationExportSettings = new PdfAnnotationExportSettings(); settings.dataFormat = DataFormat.json; // Export annotations to JSON format -let jsonData = document.exportAnnotations('annotations.json', settings); +document.exportAnnotations('annotations.json', settings); // Destroy the document document.destroy(); @@ -1357,7 +1357,7 @@ var document = new ej.pdf.PdfDocument(data); var settings = new ej.pdf.PdfAnnotationExportSettings(); settings.dataFormat = ej.pdf.DataFormat.json; // Export annotations to JSON format -var jsonData = document.exportAnnotations('annotations.json', settings); +document.exportAnnotations('annotations.json', settings); // Close the document document.destroy(); diff --git a/Document-Processing/PDF/PDF-Library/javascript/Bookmarks.md b/Document-Processing/PDF/PDF-Library/javascript/Bookmarks.md index 12b93bd98..c886a2c64 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Bookmarks.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Bookmarks.md @@ -25,10 +25,10 @@ let page: PdfPage = document.addPage(); let bookmarks: PdfBookmarkBase = document.bookmarks; // Add a new bookmark to the PDF document let bookmark: PdfBookmark = bookmarks.add('Introduction', 0, { - destination: new PdfDestination(page, { x: 100, y: 100 }, { zoom: 1 }), - namedDestination: new PdfNamedDestination('First', new PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), - color: { r: 0, g: 0, b: 255 }, - textStyle: PdfTextStyle.bold}); +destination: new PdfDestination(page, { x: 100, y: 100 }, { zoom: 1 }), +namedDestination: new PdfNamedDestination('First', new PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), +color: { r: 0, g: 0, b: 255 }, +textStyle: PdfTextStyle.bold}); // Save the document document.save('output.pdf'); // Close the document @@ -45,10 +45,10 @@ var page = document.addPage(); var bookmarks = document.bookmarks; // Add a new bookmark to the PDF document var bookmark = bookmarks.add('Introduction', 0, { - destination: new ej.pdf.PdfDestination(page, { x: 100, y: 100 }, { zoom: 1 }), - namedDestination: new ej.pdf.PdfNamedDestination('First', new ej.pdf.PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), - color: { r: 0, g: 0, b: 255 }, - textStyle: ej.pdf.PdfTextStyle.bold}); +destination: new ej.pdf.PdfDestination(page, { x: 100, y: 100 }, { zoom: 1 }), +namedDestination: new ej.pdf.PdfNamedDestination('First', new ej.pdf.PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), +color: { r: 0, g: 0, b: 255 }, +textStyle: ej.pdf.PdfTextStyle.bold}); // Save the document document.save('output.pdf'); // Close the document @@ -117,16 +117,16 @@ let page: PdfPage = document.addPage(); let bookmarks: PdfBookmarkBase = document.bookmarks; // Add a new bookmark to the PDF document let bookmark: PdfBookmark = bookmarks.add('Introduction', 0, { - destination: new PdfDestination(page, { x: 100, y: 100 }, { zoom: 1 }), - namedDestination: new PdfNamedDestination('First', new PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), - color: { r: 0, g: 0, b: 255 }, - textStyle: PdfTextStyle.bold}); +destination: new PdfDestination(page, { x: 100, y: 100 }, { zoom: 1 }), +namedDestination: new PdfNamedDestination('First', new PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), +color: { r: 0, g: 0, b: 255 }, +textStyle: PdfTextStyle.bold}); // Add a child bookmark to the PDF document let childbookmark: PdfBookmark = bookmark.add('FirstChild', 0, { - destination: new PdfDestination(page, { x: 100, y: 150 }, { zoom: 1 }), - namedDestination: new PdfNamedDestination('Second', new PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), - color: { r: 0, g: 0, b: 255 }, - textStyle: PdfTextStyle.bold}); +destination: new PdfDestination(page, { x: 100, y: 150 }, { zoom: 1 }), +namedDestination: new PdfNamedDestination('Second', new PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), +color: { r: 0, g: 0, b: 255 }, +textStyle: PdfTextStyle.bold}); // Save the document document.save('output.pdf'); // Close the document @@ -143,16 +143,16 @@ var page= document.addPage(); var bookmarks = document.bookmarks; // Add a new bookmark to the PDF document var bookmark = bookmarks.add('Introduction', 0, { - destination: new ej.pdf.PdfDestination(page, { x: 100, y: 100 }, { zoom: 1 }), - namedDestination: new ej.pdf.PdfNamedDestination('First', new ej.pdf.PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), - color: { r: 0, g: 0, b: 255 }, - textStyle: ej.pdf.PdfTextStyle.bold}); +destination: new ej.pdf.PdfDestination(page, { x: 100, y: 100 }, { zoom: 1 }), +namedDestination: new ej.pdf.PdfNamedDestination('First', new ej.pdf.PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), +color: { r: 0, g: 0, b: 255 }, +textStyle: ej.pdf.PdfTextStyle.bold}); // Add a child bookmark to the PDF document var childbookmark = bookmark.add('FirstChild', 0, { - destination: new ej.pdf.PdfDestination(page, { x: 100, y: 150 }, { zoom: 1 }), - namedDestination: new ej.pdf.PdfNamedDestination('Second', new ej.pdf.PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), - color: { r: 0, g: 0, b: 255 }, - textStyle: ej.pdf.PdfTextStyle.bold}); +destination: new ej.pdf.PdfDestination(page, { x: 100, y: 150 }, { zoom: 1 }), +namedDestination: new ej.pdf.PdfNamedDestination('Second', new ej.pdf.PdfDestination(page, { x: 0, y: 10 }, {zoom: 1 })), +color: { r: 0, g: 0, b: 255 }, +textStyle: ej.pdf.PdfTextStyle.bold}); // Save the document document.save('output.pdf'); // Close the document diff --git a/Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-mvc.md b/Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-mvc.md index 52b2b551c..9806ca90a 100644 --- a/Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-mvc.md +++ b/Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-mvc.md @@ -53,7 +53,7 @@ Step 6: **Create a PDF document**: Add the script in `~/Views/Home/Index.cshtml` @section Scripts {