Skip to content

Commit 8c42436

Browse files
committed
999358: Resolved the feedback and added proper link.
1 parent b22203f commit 8c42436

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Step 2: The JS 2 global scripts and styles are hosted on the CDN in the followin
2727
Step 3: Create a HTML page (index.html) in `my-app` location and add the CDN link references.
2828

2929
{% tabs %}
30-
{% highlight html tabtitle="index.html" %}
30+
{% highlight javascript tabtitle="index.html" %}
3131
<head>
3232
<!-- Syncfusion JavaScript PDF Library (CDN) -->
3333
<script src="https://cdn.syncfusion.com/ej2/31.2.15/dist/ej2.min.js"></script>
@@ -43,7 +43,7 @@ Ensure your server serves .wasm files with the Content-Type: application/wasm MI
4343
Step 4: **Create a PDF document**: Add the script in `index.html` by creating a button and attaching a click event that uses the JavaScript PDF API to generate a PDF document.
4444

4545
{% tabs %}
46-
{% highlight html tabtitle="~/Index.html" %}
46+
{% highlight javascript tabtitle="index.html" %}
4747
<div class="container py-4">
4848
<h1 class="h4 mb-3">Create PDF document</h1>
4949
<p class="text-muted">Click the button to generate and download a PDF.</p>
@@ -55,7 +55,7 @@ Step 4: **Create a PDF document**: Add the script in `index.html` by creating a
5555
// Create a new PDF document
5656
var pdf = new ej.pdf.PdfDocument();
5757
// Add a new page
58-
var page = document.addPage();
58+
var page = pdf.addPage();
5959
// Get graphics from the page
6060
var graphics = page.graphics;
6161
// Set font

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Ensure your server serves .wasm files with the Content-Type: application/wasm MI
3232

3333
The following list of dependencies are required to use the `TypeScript PDF library` component in your application.
3434

35-
```text
35+
```bash
3636
|-- @syncfusion/ej2-compression
3737
|-- @syncfusion/ej2-base
3838
```
@@ -57,15 +57,18 @@ The following list of dependencies are required to use the `TypeScript PDF libra
5757
* Include the following namespaces in `index.ts` file.
5858

5959
{% tabs %}
60-
{% highlight ts tabtitle="index.ts" %}
60+
{% highlight typescript tabtitle="index.ts" %}
61+
6162
import { PdfDocument, PdfGraphics, PdfPage, PdfFont, PdfFontFamily, PdfFontStyle, PdfBrush } from '@syncfusion/ej2-pdf';
63+
6264
{% endhighlight %}
6365
{% endtabs %}
6466

6567
* Include the following code example in the click event of the button in `index.ts` to generate a PDF document
6668

6769
{% tabs %}
68-
{% highlight ts tabtitle="index.ts" %}
70+
{% highlight typescript tabtitle="index.ts" %}
71+
6972
document.getElementById('normalButton').onclick = (): void => {
7073
// Create a new PDF document
7174
let pdf = new PdfDocument();
@@ -84,14 +87,15 @@ document.getElementById('normalButton').onclick = (): void => {
8487
// Destroy the PDF document instance
8588
pdf.destroy();
8689
};
90+
8791
{% endhighlight %}
8892
{% endtabs %}
8993

9094
* **Run the application**
9195

9296
The quickstart project is configured to compile and run in the browser. Use the following command to start the application:
9397

94-
````bash
98+
```bash
9599
npm start
96100
```
97101

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following are the key features of this library.
3939
* [ASP.NET Core](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/create-pdf-document-asp-net-core)
4040
* [ASP.NET MVC](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/create-pdf-document-asp-net-mvc)
4141
* [Angular](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/create-pdf-document-angular)
42-
* React
43-
* Vue
42+
* [React](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/create-pdf-document-react)
43+
* [Vue](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/create-pdf-document-vue)
4444
* [JavaScript](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/create-pdf-document-javascript)
4545
* [TypeScript](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/create-pdf-document-typescript)

0 commit comments

Comments
 (0)