Skip to content

Commit 1c3b958

Browse files
Merge pull request #1957 from syncfusion-content/998787-ug
998787: Added note content and links in JavaScript UG
2 parents 852d98e + eee8b73 commit 1c3b958

File tree

6 files changed

+25
-1
lines changed

6 files changed

+25
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ N> Check out the following topics for including script references in an ASP.NET
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)
42-
42+
N> 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`.
4343

4444
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.
4545

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ 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+
3941
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.
4042

4143
{% tabs %}

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

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

76+
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:
77+
* `openjpeg.js`
78+
* `openjpeg.wasm`
79+
7680
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.
7781

7882
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ 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+
2835
**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.
2936

3037
{% tabs %}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ 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+
4347
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.
4448

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

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ 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+
5259
* **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.
5360

5461
{% tabs %}

0 commit comments

Comments
 (0)