You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-core.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,15 @@ This guide explains how to integrate the JavaScript PDF library into an ASP.NET
16
16
17
17
## Integrate PDF library into an ASP.NET Core application
18
18
19
-
1. Start Visual Studio and select **Create a new project**.
20
-
2. In the **Create a new project** dialog, select **ASP.NET Core Web App**.
19
+
Step 1: Start Visual Studio and select **Create a new project**.
20
+
Step 2: In the **Create a new project** dialog, select **ASP.NET Core Web App**.
21
21

22
-
3. In the **Configure your new project** dialog, enter the project name and select **Next**.
22
+
Step 3: In the **Configure your new project** dialog, enter the project name and select **Next**.
23
23

24
-
4. In the **Additional information** dialog, select a .NET LTS version (for example, **.NET 8.0 (Long-term Support)**) and then select **Create**.
24
+
Step 4: In the **Additional information** dialog, select a .NET LTS version (for example, **.NET 8.0 (Long-term Support)**) and then select **Create**.
25
25

26
26
27
-
5.**Add script reference** : Add the required scripts using the CDN inside the `<head>` of `~/Views/Shared/_Layout.cshtml` as follows:
27
+
Step 5:**Add script reference** : Add the required scripts using the CDN inside the `<head>` of `~/Views/Shared/_Layout.cshtml` as follows:
28
28
29
29
{% tabs %}
30
30
{% highlight c# tabtitle="~/_Layout.cshtml" %}
@@ -38,7 +38,7 @@ This guide explains how to integrate the JavaScript PDF library into an ASP.NET
38
38
{% endhighlight %}
39
39
{% endtabs %}
40
40
41
-
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.
41
+
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.
42
42
43
43
{% tabs %}
44
44
{% highlight c# tabtitle="~/Index.cshtml" %}
@@ -75,9 +75,9 @@ This guide explains how to integrate the JavaScript PDF library into an ASP.NET
75
75
{% endhighlight %}
76
76
{% endtabs %}
77
77
78
-
7.**Build the project** : Click on Build > Build Solution or press Ctrl + Shift + B to build the project.
78
+
step 7:**Build the project** : Click on Build > Build Solution or press Ctrl + Shift + B to build the project.
79
79
80
-
8.**Run the project** : Click the Start button (green arrow) or press F5 to run the app.
80
+
Step 8:**Run the project** : Click the Start button (green arrow) or press F5 to run the app.
81
81
82
82
By executing the program, you will generate the following PDF document.
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Library/javascript/Create-PDF-document-asp-net-mvc.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,15 @@ This guide explains how to integrate the JavaScript PDF library into an ASP.NET
16
16
17
17
## Integrate PDF library into an ASP.NET MVC application
18
18
19
-
1. Start Visual Studio and select **Create a new project**.
20
-
2. Create a new ASP.NET MVC Web Application project.
19
+
Step 1: Start Visual Studio and select **Create a new project**.
20
+
Step 2: Create a new ASP.NET MVC Web Application project.
21
21

22
-
3. Choose the target framework.
22
+
Step 3: Choose the target framework.
23
23

24
-
4. Select Web Application pattern (MVC) for the project and then select **Create** button.
24
+
Step 4: Select Web Application pattern (MVC) for the project and then select **Create** button.
25
25

26
26
27
-
5.**Add script reference** : Add the required scripts using the CDN inside the `<head>` of `~/Views/Shared/_Layout.cshtml` as follows:
27
+
Step 5:**Add script reference** : Add the required scripts using the CDN inside the `<head>` of `~/Views/Shared/_Layout.cshtml` as follows:
28
28
29
29
{% tabs %}
30
30
{% highlight c# tabtitle="~/_Layout.cshtml" %}
@@ -38,7 +38,7 @@ This guide explains how to integrate the JavaScript PDF library into an ASP.NET
38
38
{% endhighlight %}
39
39
{% endtabs %}
40
40
41
-
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.
41
+
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.
42
42
43
43
{% tabs %}
44
44
{% highlight c# tabtitle="~/Index.cshtml" %}
@@ -75,9 +75,9 @@ This guide explains how to integrate the JavaScript PDF library into an ASP.NET
75
75
{% endhighlight %}
76
76
{% endtabs %}
77
77
78
-
7.**Build the project** : Click on Build > Build Solution or press Ctrl + Shift + B to build the project.
78
+
Step 7:**Build the project** : Click on Build > Build Solution or press Ctrl + Shift + B to build the project.
79
79
80
-
8.**Run the project** : Click the Start button (green arrow) or press F5 to run the app.
80
+
Step 8:**Run the project** : Click the Start button (green arrow) or press F5 to run the app.
81
81
82
82
By executing the program, you will generate the following PDF document.
**Step 3:** Create a HTML page (index.html) in `my-app` location and add the CDN link references.
31
+
Step 3: Create a HTML page (index.html) in `my-app` location and add the CDN link references.
32
32
33
33
{% tabs %}
34
34
{% highlight ts tabtitle="index.html" %}
@@ -42,7 +42,7 @@ The Syncfusion<sup>®</sup> JS 2 for JavaScript (global script) is an ES5 for
42
42
{% endhighlight %}
43
43
{% endtabs %}
44
44
45
-
**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.
45
+
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.
0 commit comments