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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,10 @@ Step 2: In the **Create a new project** dialog, select **ASP.NET Core Web App**.
21
21

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

24
-
Step 8: 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
-
Step 4: **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 @@ Step 4: **Add script reference** : Add the required scripts using the CDN inside
38
38
{% endhighlight %}
39
39
{% endtabs %}
40
40
41
-
Step 5: **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 @@ Step 5: **Create a PDF document** : Add the script in `~/Views/Home/Index.cshtml
75
75
{% endhighlight %}
76
76
{% endtabs %}
77
77
78
-
step 6: **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
-
Step 7: **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.
0 commit comments