Skip to content

Commit 620a699

Browse files
Merge pull request #1953 from syncfusion-content/998417-1
998417-1: Completed the all feedback in JavaScript PDF UG.
2 parents 38faaf3 + 12dd2a2 commit 620a699

25 files changed

+1005
-706
lines changed

Document-Processing-toc.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2587,8 +2587,10 @@
25872587
<li><a href="/document-processing/pdf/pdf-library/javascript/HyperLinks">Hyperlinks</a></li>
25882588
<li><a href="/document-processing/pdf/pdf-library/javascript/Layers">Layers</a></li>
25892589
<li><a href="/document-processing/pdf/pdf-library/javascript/Watermarks">Watermarks</a></li>
2590+
<li><a href="/document-processing/pdf/pdf-library/javascript/Merge-Document">Merge PDF</a></li>
25902591
<li><a href="/document-processing/pdf/pdf-library/javascript/Split-Documents">Split PDF</a></li>
25912592
<li><a href="/document-processing/pdf/pdf-library/javascript/Text-Extraction">Text Extraction</a></li>
2593+
<li><a href="/document-processing/pdf/pdf-library/javascript/Image-Extraction">Image Extraction</a></li>
25922594
<li><a href="/document-processing/pdf/pdf-library/javascript/Redaction">Redaction</a></li>
25932595
</ul>
25942596

@@ -6005,7 +6007,7 @@
60056007
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-reading-Excel-from-azure-blob-storage">Does XlsIO support reading Excel from Azure Blob Storage?</a>
60066008
</li>
60076009
<li>
6008-
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-auto-correcting formulas">Does XlsIO support auto-correcting formulas?</a>
6010+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-auto-correcting-formulas">Does XlsIO support auto-correcting formulas?</a>
60096011
</li>
60106012
<li>
60116013
<a href="/document-processing/excel/excel-library/net/faqs/how-are-spaces-in-cell-values-handled-by-xlsio-during-calculation">How are spaces in cell values handled by XlsIO during calculation?</a>

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ This example demonstrates how to add a free text annotation to a PDF page using
233233

234234
{% tabs %}
235235
{% highlight typescript tabtitle="TypeScript" %}
236-
import {PdfDocument, PdfPage, PdfFreeTextAnnotation, PdfTextAlignment, PdfAnnotationBorder, PdfBorderStyle, PdfFreeTextAnnotation, PdfLineEndingStyle, PdfStandardFont, PdfFontFamily, PdfFontStyle} from '@syncfusion/ej2-pdf';
236+
import {PdfDocument, PdfPage, PdfFreeTextAnnotation, PdfTextAlignment, PdfAnnotationIntent, PdfAnnotationBorder, PdfBorderStyle, PdfLineEndingStyle, PdfFontFamily, PdfFontStyle} from '@syncfusion/ej2-pdf';
237237

238238
// Creates a new PDF document
239239
let document: PdfDocument = new PdfDocument();
@@ -246,7 +246,7 @@ let freeText = new PdfFreeTextAnnotation({ x: 250, y: 260, width: 180, height: 8
246246
annotationIntent: PdfAnnotationIntent.freeTextCallout,
247247
calloutLines: [{ x: 200, y: 320 }, { x: 260, y: 300 }, { x: 260, y: 300 }],
248248
lineEndingStyle: PdfLineEndingStyle.openArrow,
249-
font: new PdfStandardFont(PdfFontFamily.helvetica, 9, PdfFontStyle.italic),
249+
font: document.embedFont(PdfFontFamily.helvetica, 10, PdfFontStyle.regular),
250250
textMarkUpColor: { r: 40, g: 40, b: 40 },
251251
innerColor: { r: 240, g: 248, b: 255 },
252252
borderColor: { r: 0, g: 0, b: 0 },
@@ -295,7 +295,7 @@ The following code snippet explains how to add a free text annotation in an exis
295295

296296
{% tabs %}
297297
{% highlight typescript tabtitle="TypeScript" %}
298-
import {PdfDocument, PdfPage, PdfFreeTextAnnotation, PdfTextAlignment, PdfAnnotationBorder, PdfBorderStyle, PdfFreeTextAnnotation, PdfLineEndingStyle, PdfStandardFont, PdfFontFamily, PdfFontStyle} from '@syncfusion/ej2-pdf';
298+
import {PdfDocument, PdfPage, PdfAnnotationIntent, PdfFreeTextAnnotation, PdfTextAlignment, PdfAnnotationBorder, PdfBorderStyle, PdfLineEndingStyle, PdfFontFamily, PdfFontStyle} from '@syncfusion/ej2-pdf';
299299

300300
// Load an existing PDF document
301301
let document: PdfDocument = new PdfDocument(data);
@@ -308,7 +308,7 @@ let freeText = new PdfFreeTextAnnotation({ x: 250, y: 260, width: 180, height: 8
308308
annotationIntent: PdfAnnotationIntent.freeTextCallout,
309309
calloutLines: [{ x: 200, y: 320 }, { x: 260, y: 300 }, { x: 260, y: 300 }],
310310
lineEndingStyle: PdfLineEndingStyle.openArrow,
311-
font: new PdfStandardFont(PdfFontFamily.helvetica, 9, PdfFontStyle.italic),
311+
font: document.embedFont(PdfFontFamily.helvetica, 10, PdfFontStyle.regular);
312312
textMarkUpColor: { r: 40, g: 40, b: 40 },
313313
innerColor: { r: 240, g: 248, b: 255 },
314314
borderColor: { r: 0, g: 0, b: 0 },
@@ -1030,7 +1030,7 @@ This example demonstrates how to add a document link annotation to a PDF page us
10301030

10311031
{% tabs %}
10321032
{% highlight typescript tabtitle="TypeScript" %}
1033-
import {PdfDocument, PdfPage, PdfDocumentLinkAnnotation, PdfDestinationMode, PdfBorderStyle} from '@syncfusion/ej2-pdf';
1033+
import {PdfDocument, PdfPage, PdfDocumentLinkAnnotation, PdfDestination, PdfAnnotationBorder, PdfDestinationMode, PdfBorderStyle} from '@syncfusion/ej2-pdf';
10341034

10351035
// Create a new PDF document
10361036
let document: PdfDocument = new PdfDocument();
@@ -1077,7 +1077,7 @@ The following code snippet explains how to add a document link annotation in an
10771077

10781078
{% tabs %}
10791079
{% highlight typescript tabtitle="TypeScript" %}
1080-
import {PdfDocument, PdfPage, PdfDocumentLinkAnnotation, PdfDestinationMode, PdfBorderStyle} from '@syncfusion/ej2-pdf';
1080+
import {PdfDocument, PdfPage, PdfDocumentLinkAnnotation, PdfDestination, PdfAnnotationBorder, PdfDestinationMode, PdfBorderStyle} from '@syncfusion/ej2-pdf';
10811081

10821082
// Load an existing PDF document
10831083
let document: PdfDocument = new PdfDocument(data);
@@ -2014,7 +2014,7 @@ document.destroy();
20142014

20152015
## Modifying the annotations
20162016

2017-
This example demonstrates how to modify an existing annotation in a PDF page using the PdfAnnotation class. Modifying annotations allows updating properties such as position, color, content, or appearance, enabling customization and refinement of the documents interactive elements.
2017+
This example demonstrates how to modify an existing annotation in a PDF page using the PdfAnnotation class. Modifying annotations allows updating properties such as position, color, content, or appearance, enabling customization and refinement of the document's interactive elements.
20182018

20192019
{% tabs %}
20202020
{% highlight typescript tabtitle="TypeScript" %}
@@ -2171,7 +2171,7 @@ This example demonstrates how to export annotations from a PDF document using th
21712171

21722172
{% tabs %}
21732173
{% highlight typescript tabtitle="TypeScript" %}
2174-
import {PdfDocument, Uint8Array} from '@syncfusion/ej2-pdf';
2174+
import {PdfDocument} from '@syncfusion/ej2-pdf';
21752175

21762176
// Load an existing PDF document
21772177
let document: PdfDocument = new PdfDocument(data);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ This example demonstrates how to remove bookmarks from the document at the speci
182182

183183
{% tabs %}
184184
{% highlight javascript tabtitle="TypeScript" %}
185-
import {PdfDocument, PdfPage, PdfBookmarkBase, PdfDestination} from '@syncfusion/ej2-pdf';
185+
import {PdfDocument, PdfPage, PdfBookmarkBase} from '@syncfusion/ej2-pdf';
186186

187187
// Load an existing PDF document
188188
let document: PdfDocument = new PdfDocument(data);
@@ -221,7 +221,7 @@ This example demonstrates how to removes all the bookmarks from the collection u
221221

222222
{% tabs %}
223223
{% highlight javascript tabtitle="TypeScript" %}
224-
import {PdfDocument, PdfPage, PdfBookmarkBase} from '@syncfusion/ej2-pdf';
224+
import {PdfDocument, PdfBookmarkBase} from '@syncfusion/ej2-pdf';
225225

226226
// Load an existing PDF document
227227
let document: PdfDocument = new PdfDocument(data);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This guide explains how to integrate the JavaScript PDF library into an Angular
1616

1717
## Setup Angular Environment
1818

19-
You can use the [`Angular CLI`](https://github.com/angular/angular-cli) to setup your Angular applications.
19+
You can use the [Angular CLI](https://github.com/angular/angular-cli) to setup your Angular applications.
2020
To install the latest Angular CLI globally use the following command.
2121

2222
```bash
@@ -66,7 +66,7 @@ N> For data extraction features, you need to install the `@syncfusion/ej2-pdf-da
6666

6767
{% tabs %}
6868
{% highlight ts tabtitle="~/app.component.ts" %}
69-
import { PdfDocument, PdfPage, PdfStandardFont, PdfPen, PdfBrush } from '@syncfusion/ej2-pdf';
69+
import { PdfDocument, PdfPage, PdfStandardFont, PdfBrush } from '@syncfusion/ej2-pdf';
7070
{% endhighlight %}
7171
{% endtabs %}
7272

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ Step 5: **Add script reference** : Add the required scripts using the CDN inside
3535
{% endhighlight %}
3636
{% endtabs %}
3737

38-
N> Check out the following topics for including script references in an ASP.NET Core application to enable PDF creation using the Syncfusion<sup style="font-size:70%"</sup> JavaScript PDF library:
38+
N> Check out the following topics for including script references in an ASP.NET Core application to enable PDF creation using the Syncfusion<sup>&reg;</sup> JavaScript PDF library:
3939
* [CDN](https://ej2.syncfusion.com/aspnetcore/documentation/common/adding-script-references#cdn-reference)
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-
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**?
44-
4543

4644
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.
4745

@@ -58,7 +56,7 @@ Step 6: **Create a PDF document** : Add the script in `~/Views/Home/Index.cshtml
5856
// Create a new PDF document
5957
let pdf = new ej.pdf.PdfDocument();
6058
// Add a new page
61-
let page: ej.pdf.PdfPage = document.addPage();
59+
let page: ej.pdf.PdfPage = pdf.addPage();
6260
// Get graphics from the page
6361
let graphics: ej.pdf.PdfGraphics = page.graphics;
6462
// Set font

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Step 6: **Create a PDF document** : Add the script in `~/Views/Home/Index.cshtml
5151
// Create a new PDF document
5252
let pdf = new ej.pdf.PdfDocument();
5353
// Add a new page
54-
let page: ej.pdf.PdfPage = document.addPage();
54+
let page: ej.pdf.PdfPage = pdf.addPage();
5555
// Get graphics from the page
5656
let graphics: ej.pdf.PdfGraphics = page.graphics;
5757
// Set font

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ Step 4: **Create a PDF document** : Add the script in `index.html` by creating a
7070
});
7171
</script>
7272
}
73-
7473
{% endhighlight %}
7574
{% endtabs %}
7675

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ document.getElementById('normalButton').onclick = (): void => {
5858
// Create a new PDF document
5959
let pdf = new PdfDocument();
6060
// Add a new page
61-
let page: PdfPage = document.addPage();
61+
let page: PdfPage = pdf.addPage();
6262
// Get graphics from the page
6363
let graphics: PdfGraphics = page.graphics;
6464
// Set font

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262
// Create a new PDF document
6363
const pdf = new ej.pdf.PdfDocument();
6464
// Add a new page
65-
const page: ej.pdf.PdfPage = document.addPage();
65+
const page: ej.pdf.PdfPage = pdf.addPage();
6666
// Get graphics from the page
6767
const graphics: ej.pdf.PdfGraphics = page.graphics;
6868
// Set font

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ This example demonstrates how to retrieve the certificate information of a PDF s
360360

361361
{% tabs %}
362362
{% highlight typescript tabtitle="TypeScript" %}
363-
import {PdfDocument, PdfPage, PdfForm, PdfSignatureField, DigestAlgorithm,PdfCertificateInformation, CryptographicStandard} from '@syncfusion/ej2-pdf';
363+
import {PdfDocument, PdfPage, PdfForm, PdfSignatureField, DigestAlgorithm, PdfCertificateInformation, CryptographicStandard} from '@syncfusion/ej2-pdf';
364364

365365
// Load the document
366366
let document: PdfDocument = new PdfDocument(data);
@@ -420,7 +420,7 @@ This example demonstrates how to retrieve the configuration options of a digital
420420

421421
{% tabs %}
422422
{% highlight typescript tabtitle="TypeScript" %}
423-
import {PdfDocument, PdfPage, PdfForm, PdfSignatureField, DigestAlgorithm, CryptographicStandard} from '@syncfusion/ej2-pdf';
423+
import {PdfDocument, PdfPage, PdfForm, PdfSignature, PdfSignatureOptions, PdfSignatureField, CryptographicStandard} from '@syncfusion/ej2-pdf';
424424

425425
// Load the document
426426
let document: PdfDocument = new PdfDocument(data);

0 commit comments

Comments
 (0)