Skip to content

Commit 8ab6645

Browse files
committed
998417: Resolved almost feedback.
1 parent ac7e951 commit 8ab6645

25 files changed

+1692
-2401
lines changed

Document-Processing/PDF/PDF-Library/javascript/Annotations.md

Lines changed: 16 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ document.destroy();
523523
{% endhighlight %}
524524
{% endtabs %}
525525

526-
The following code snippet explains how to add a free text annotation in an existing PDF document.
526+
The following code snippet explains how to add a rubber stamp annotation in an existing PDF document.
527527

528528
{% tabs %}
529529
{% highlight typescript tabtitle="TypeScript" %}
@@ -894,7 +894,7 @@ document.destroy();
894894
{% endhighlight %}
895895
{% endtabs %}
896896

897-
The following code snippet explains how to add a attachment annotation in an existing PDF document.
897+
The following code snippet explains how to add a file attachment annotation in an existing PDF document.
898898

899899
{% tabs %}
900900
{% highlight typescript tabtitle="TypeScript" %}
@@ -948,41 +948,6 @@ document.destroy();
948948
{% endhighlight %}
949949
{% endtabs %}
950950

951-
### Sound Annotation
952-
953-
This example demonstrates how to access a sound annotation to a PDF page using the `PdfSoundAnnotation` class.
954-
955-
{% tabs %}
956-
{% highlight typescript tabtitle="TypeScript" %}
957-
import {PdfDocument, PdfPage, PdfSoundAnnotation} from '@syncfusion/ej2-pdf';
958-
959-
// Load an existing PDF document
960-
let document: PdfDocument = new PdfDocument(data);
961-
// Access the first page
962-
let page: PdfPage = document.getPage(0);
963-
// Access the annotation at index 0
964-
let annotation: PdfSoundAnnotation = page.annotations.at(0) as PdfSoundAnnotation;
965-
// Save the document
966-
document.save('Output.pdf');
967-
// Close the document
968-
document.destroy();
969-
970-
{% endhighlight %}
971-
{% highlight javascript tabtitle="JavaScript" %}
972-
// Load an existing PDF document
973-
var document = new ej.pdf.PdfDocument(data);
974-
// Access the first page
975-
var page = document.getPage(0);
976-
// Access the annotation at index 0
977-
var annotation = page.annotations.at(0);
978-
// Save the document
979-
document.save('Output.pdf');
980-
// Close the document
981-
document.destroy();
982-
983-
{% endhighlight %}
984-
{% endtabs %}
985-
986951
### URI Annotation
987952

988953
This example demonstrates how to add a URI annotation to a PDF page using the `PdfUriAnnotation` class. A URI annotation allows linking to a web address or online resource from within a PDF document.
@@ -1225,7 +1190,7 @@ document.destroy();
12251190
{% endhighlight %}
12261191
{% endtabs %}
12271192

1228-
The following code snippet explains how to add a document link annotation in an existing PDF document.
1193+
The following code snippet explains how to add a redaction annotation in an existing PDF document.
12291194

12301195
{% tabs %}
12311196
{% highlight typescript tabtitle="TypeScript" %}
@@ -1493,9 +1458,7 @@ document.destroy();
14931458
{% endhighlight %}
14941459
{% endtabs %}
14951460

1496-
## Cloud border style Annotation
1497-
1498-
### PdfRectangleAnnotation
1461+
## Rectangle Annotation
14991462

15001463
This example demonstrates how to add a rectangle annotation to a PDF page using the `PdfRectangleAnnotation` class. A rectangle annotation allows drawing rectangular shapes on a PDF document.
15011464

@@ -1507,7 +1470,7 @@ import {PdfDocument, PdfPage, PdfRectangleAnnotation, PdfAnnotationBorder, PdfBo
15071470
let document: PdfDocument = new PdfDocument();
15081471
// Adds a new page to the PDF
15091472
let page: PdfPage = document.addPage();
1510-
// Create a new square annotation with bounds
1473+
// Create a new rectangle annotation with bounds
15111474
let annotation = new PdfRectangleAnnotation({ x: 50, y: 80, width: 200, height: 100 }, {
15121475
text: 'Rect', author: 'Syncfusion', subject: 'Rectangle Annotation',
15131476
color: { r: 255, g: 0, b: 0 },
@@ -1528,7 +1491,7 @@ document.destroy();
15281491
var document = new ej.pdf.PdfDocument();
15291492
// Adds a new page to the PDF
15301493
var page = document.addPage();
1531-
// Create a new square annotation with bounds
1494+
// Create a new rectangle annotation with bounds
15321495
var annotation = new ej.pdf.PdfRectangleAnnotation(
15331496
{ x: 50, y: 80, width: 200, height: 100 },
15341497
{
@@ -1615,7 +1578,7 @@ document.destroy();
16151578
{% endhighlight %}
16161579
{% endtabs %}
16171580

1618-
### Polygon Annotation
1581+
## Polygon Annotation
16191582

16201583
This example demonstrates how to add a polygon annotation to a PDF page using the `PdfPolygonAnnotation` class. A polygon annotation allows drawing multi-sided shapes on a PDF document.
16211584

@@ -1753,7 +1716,7 @@ document.destroy();
17531716
{% endhighlight %}
17541717
{% endtabs %}
17551718

1756-
### PdfCircleAnnotation
1719+
## Circle Annotation
17571720

17581721
This example demonstrates how to add a circle annotation to a PDF page using the `PdfCircleAnnotation` class. A circle annotation allows drawing circular or oval shapes on a PDF document.
17591722

@@ -1881,7 +1844,7 @@ document.destroy();
18811844
{% endhighlight %}
18821845
{% endtabs %}
18831846

1884-
### PdfEllipseAnnotation
1847+
## Ellipse Annotation
18851848

18861849
This example demonstrates how to add an ellipse annotation to a PDF page using the `PdfEllipseAnnotation` class. An ellipse annotation allows drawing elliptical shapes on a PDF document.
18871850

@@ -2005,6 +1968,13 @@ document.destroy();
20051968

20061969
This example demonstrates how to access a measurement annotation from a PDF page using the `PdfLineAnnotation` class. A measurement annotation allows defining and displaying dimensions such as distances or lengths within a PDF document.
20071970

1971+
Common types of measurement annotations include:
1972+
1973+
* Line - Represents a straight distance between two points.
1974+
* Circle - Used to measure circular dimensions.
1975+
* Square - Defines rectangular or square measurements.
1976+
* Angle - Displays angular measurements between two intersecting lines.
1977+
20081978
{% tabs %}
20091979
{% highlight typescript tabtitle="TypeScript" %}
20101980
import {PdfDocument, PdfPage, PdfLineAnnotation, PdfMeasurementUnit} from '@syncfusion/ej2-pdf';

Document-Processing/PDF/PDF-Library/javascript/Bookmarks.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This example demonstrates how to add bookmarks to an existing PDF document using
6161
import {PdfDocument, PdfPage, PdfBookmarkBase, PdfDestination} from '@syncfusion/ej2-pdf';
6262

6363
// Load an existing PDF document
64-
let document: PdfDocument = new PdfDocument(data, password);
64+
let document: PdfDocument = new PdfDocument(data);
6565
// Get page
6666
let page: PdfPage = document.getPage(0);
6767
// Get the bookmarks
@@ -78,7 +78,7 @@ document.destroy();
7878
{% endhighlight %}
7979
{% highlight javascript tabtitle="JavaScript" %}
8080
// Load an existing PDF document
81-
var document = new ej.pdf.PdfDocument(data, password);
81+
var document = new ej.pdf.PdfDocument(data);
8282
// Get page
8383
var page = document.getPage(0);
8484
// Get the bookmarks
@@ -104,7 +104,7 @@ This example demonstrates how to insert bookmarks at a specific position in an e
104104
import {PdfDocument, PdfPage, PdfBookmarkBase, PdfDestination} from '@syncfusion/ej2-pdf';
105105

106106
// Load an existing PDF document
107-
let document: PdfDocument = new PdfDocument(data, password);
107+
let document: PdfDocument = new PdfDocument(data);
108108
// Get the first page
109109
let page: PdfPage = document.getPage(0) as PdfPage;
110110
// Get the bookmarks
@@ -121,7 +121,7 @@ document.destroy();
121121
{% endhighlight %}
122122
{% highlight javascript tabtitle="JavaScript" %}
123123
// Load an existing PDF document
124-
var document = new ej.pdf.PdfDocument(data, password);
124+
var document = new ej.pdf.PdfDocument(data);
125125
// Get the first page
126126
var page = document.getPage(0);
127127
// Get the bookmarks
@@ -146,7 +146,7 @@ This example demonstrates how to remove bookmarks from an existing PDF document
146146
import {PdfDocument, PdfPage, PdfBookmarkBase} from '@syncfusion/ej2-pdf';
147147

148148
// Load an existing PDF document
149-
let document: PdfDocument = new PdfDocument(data, password);
149+
let document: PdfDocument = new PdfDocument(data);
150150
// Get the first page
151151
let page: PdfPage = document.getPage(0) as PdfPage;
152152
// Get the bookmarks
@@ -161,7 +161,7 @@ document.destroy();
161161
{% endhighlight %}
162162
{% highlight javascript tabtitle="JavaScript" %}
163163
// Load an existing PDF document
164-
var document = new ej.pdf.PdfDocument(data, password);
164+
var document = new ej.pdf.PdfDocument(data);
165165
// Get the first page
166166
var page = document.getPage(0);
167167
// Get the bookmarks
@@ -185,7 +185,7 @@ This example demonstrates how to remove bookmarks from the document at the speci
185185
import {PdfDocument, PdfPage, PdfBookmarkBase, PdfDestination} from '@syncfusion/ej2-pdf';
186186

187187
// Load an existing PDF document
188-
let document: PdfDocument = new PdfDocument(data, password);
188+
let document: PdfDocument = new PdfDocument(data);
189189
// Get the first page
190190
let page: PdfPage = document.getPage(0) as PdfPage;
191191
// Get the bookmarks
@@ -200,7 +200,7 @@ document.destroy();
200200
{% endhighlight %}
201201
{% highlight javascript tabtitle="JavaScript" %}
202202
// Load an existing PDF document
203-
var document = new ej.pdf.PdfDocument(data, password);
203+
var document = new ej.pdf.PdfDocument(data);
204204
// Get the first page
205205
var page = document.getPage(0);
206206
// Get the bookmarks
@@ -224,7 +224,7 @@ This example demonstrates how to removes all the bookmarks from the collection u
224224
import {PdfDocument, PdfPage, PdfBookmarkBase} from '@syncfusion/ej2-pdf';
225225

226226
// Load an existing PDF document
227-
let document: PdfDocument = new PdfDocument(data, password);
227+
let document: PdfDocument = new PdfDocument(data);
228228
// Get the bookmarks
229229
let bookmarks: PdfBookmarkBase = document.bookmarks;
230230
// Remove all the bookmark from the collection.
@@ -239,7 +239,7 @@ document.destroy();
239239
{% endhighlight %}
240240
{% highlight javascript tabtitle="JavaScript" %}
241241
// Load an existing PDF document
242-
var document = new ej.pdf.PdfDocument(data, password);
242+
var document = new ej.pdf.PdfDocument(data);
243243
// Get the bookmarks
244244
var bookmarks = document.bookmarks;
245245
// Remove all the bookmarks from the collection
@@ -263,7 +263,7 @@ This example demonstrates how to retrieve the page index associated with a bookm
263263
import {PdfDocument, PdfBookmarkBase} from '@syncfusion/ej2-pdf';
264264

265265
// Load an existing PDF document
266-
let document: PdfDocument = new PdfDocument(data, password);
266+
let document: PdfDocument = new PdfDocument(data);
267267
// Get bookmarks
268268
let bookmarks: PdfBookmarkBase = document.bookmarks;
269269
// Get bookmark at the specified index
@@ -276,7 +276,7 @@ document.destroy();
276276
{% endhighlight %}
277277
{% highlight javascript tabtitle="JavaScript" %}
278278
// Load an existing PDF document
279-
var document = new ej.pdf.PdfDocument(data, password);
279+
var document = new ej.pdf.PdfDocument(data);
280280
// Get bookmarks
281281
var bookmarks = document.bookmarks;
282282
// Get the first bookmark (or any specific one)

Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-angular.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ npm install @syncfusion/ej2-pdf --save
4545
```
4646
N> For data extraction features, you need to install the `@syncfusion/ej2-pdf-data-extract` package as an add-on.
4747

48-
* Copy the contents of the openjpeg folder from ./node_modules/@syncfusion/ej2-pdf-data-extract/dist to the public directory using the command:
49-
```bash
50-
cp -R ./node_modules/@syncfusion/ej2-pdf-data-extract/dist/openjpeg public/openjpeg
51-
```
52-
* Confirm that there is an 'openjpeg' directory within your public directory, if you extracting images from PDF.
53-
* Validate that your server has been configured to utilize the Content-Type: application/wasm MIME type. Additional information can be found in the [Troubleshooting](./troubleshooting/troubleshooting) section.
54-
5548
## Create a PDF document using TypeScript
5649

5750
* Add a simple button to `app.component.html` and attach a click handler that uses the TypeScript PDF API to create a new PDF document.

Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-core.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ N> Check out the following topics for including script references in an ASP.NET
4040
* [NPM Package](https://ej2.syncfusion.com/aspnetcore/documentation/common/adding-script-references#node-package-manager-npm)
4141
* [CRG](https://ej2.syncfusion.com/aspnetcore/documentation/common/custom-resource-generator)
4242

43-
And ensure the application includes an `openjpeg` folder under `wwwroot` (or a publicly accessible static path). This folder must contain the `openjpeg.js` and `openjpeg.wasm` files, along with the PDF file to extract images. Keep these in the same static content area as `ej2.min.js`.
44-
***
45-
4643
Would you like me to **reformat this into a proper Syncfusion documentation style note block** (with icons and emphasis), or **convert it into a step-by-step guide for adding script references**?
4744

4845

Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-mvc.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ Step 5: **Add script reference** : Add the required scripts using the CDN inside
3636
{% endhighlight %}
3737
{% endtabs %}
3838

39-
N> And ensure the application includes an `openjpeg` folder under `Scripts` (or a publicly accessible static path). This folder must contain the `openjpeg.js` and `openjpeg.wasm` files, along with the PDF file to extract images. Keep these in the same static content area as `ej2.min.js`.
40-
4139
Step 6: **Create a PDF document** : Add the script in `~/Views/Home/Index.cshtml` by creating a button and attaching a click event that uses the JavaScript PDF API to generate a PDF document.
4240

4341
{% tabs %}

Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-javascript.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ Step 4: **Create a PDF document** : Add the script in `index.html` by creating a
7474
{% endhighlight %}
7575
{% endtabs %}
7676

77-
N> For the JavaScript platform, place the **openjpeg** folder in the same location as your `index.html` file. Ensure that your application includes an `openjpeg` folder under `Scripts` (or any publicly accessible static path). This folder must contain the following:
78-
* `openjpeg.js`
79-
* `openjpeg.wasm`
80-
8177
Along with the PDF file from which you want to extract images. Keep these files in the same static content area as `ej2.min.js` to ensure proper loading.
8278

8379
By executing the program, you will get the PDF document as follows.

Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-react.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@ npm install @syncfusion/ej2-pdf --save
2525
```
2626
N> For data extraction features, you need to install the `@syncfusion/ej2-pdf-data-extract` package as an add-on.
2727

28-
* Copy the contents of the openjpeg folder from ./node_modules/@syncfusion/ej2-pdf-data-extract/dist to the public directory using the command:
29-
```bash
30-
cp -R ./node_modules/@syncfusion/ej2-pdf-data-extract/dist/openjpeg public/openjpeg
31-
```
32-
* Confirm that there is an 'openjpeg' directory within your public directory, if you extracting images from PDF.
33-
* Validate that your server has been configured to utilize the Content-Type: application/wasm MIME type. Additional information can be found in the [Troubleshooting](./troubleshooting/troubleshooting) section.
34-
3528
**Create a PDF document** : Add the script in `App.jsx` by creating a button and attaching a click event that uses the JavaScript PDF API to generate a PDF document.
3629

3730
{% tabs %}

Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-typescript.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ The following list of dependencies are required to use the `TypeScript PDF libra
4040
{% endhighlight %}
4141
{% endtabs %}
4242

43-
N> For the TypeScript platform, place the **openjpeg** folder in the same location as your `index.html` file. Ensure that your application includes an `openjpeg` folder under `Scripts` (or any publicly accessible static path). This folder must contain the following:
44-
* `openjpeg.js`
45-
* `openjpeg.wasm`
46-
4743
Along with the PDF file from which you want to extract images. Keep these files in the same static content area as `ej2.min.js` to ensure proper loading.
4844

4945
* Include the following namespaces in `index.ts` file.

Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-vue.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ npm install @syncfusion/ej2-pdf --save
4949
```
5050
N> For data extraction features, you need to install the `@syncfusion/ej2-pdf-data-extract` package as an add-on.
5151

52-
* Copy the contents of the openjpeg folder from ./node_modules/@syncfusion/ej2-pdf-data-extract/dist to the public directory using the command:
53-
```bash
54-
cp -R ./node_modules/@syncfusion/ej2-pdf-data-extract/dist/openjpeg public/js/openjpeg
55-
```
56-
* Confirm that there is an 'openjpeg' directory within your public directory, if you extracting images from PDF.
57-
* Validate that your server has been configured to utilize the Content-Type: application/wasm MIME type. Additional information can be found in the [Troubleshooting](./troubleshooting/troubleshooting) section.
58-
5952
* **Create a PDF document** : Add the script in `App.vue` by creating a button and attaching a click event that uses the JavaScript PDF API to generate a PDF document.
6053

6154
{% tabs %}

0 commit comments

Comments
 (0)