Skip to content

Commit 6be86d2

Browse files
Merge pull request #274 from SyncfusionExamples/1049012_html_readme
1049012 -Added README file using HTML-to-PDF support in Angular
2 parents 4b4c29b + 3521efd commit 6be86d2

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# HTML to PDF Conversion Sample
2+
3+
This sample demonstrates how to convert HTML content to PDF in an Angular application using the Syncfusion .NET PDF Library with an ASP.NET Core Web API backend.
4+
5+
## Running the Sample
6+
7+
### Run the Backend Service
8+
9+
1. Open the **HtmlToPdfAPI** project.
10+
2. Restore the NuGet packages.
11+
3. Run the Web API project.
12+
13+
```bash
14+
dotnet restore
15+
dotnet run
16+
```
17+
18+
### Run the Angular Application
19+
20+
1. Open the **HtmlToPdfAngular** project.
21+
2. Install the required npm packages.
22+
23+
```bash
24+
npm install
25+
```
26+
27+
3. Start the Angular application.
28+
29+
```bash
30+
npm start
31+
```
32+
33+
or
34+
35+
```bash
36+
ng serve
37+
```
38+
39+
### Access the Application
40+
41+
Open the browser and navigate to:
42+
43+
```text
44+
http://localhost:4200
45+
```
46+
47+
Generate the PDF from the Angular application. The HTML content will be sent to the ASP.NET Core Web API, converted to PDF, and returned to the client for download or viewing.
48+
49+
## References
50+
51+
### Web API User Guide
52+
53+
https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/convert-html-to-pdf-in-web-api
54+
55+
### Knowledge Base Article
56+
57+
https://support.syncfusion.com/kb/article/10049/how-to-convert-html-to-pdf-using-web-api-in-net
58+
59+
### FT Page
60+
61+
https://www.syncfusion.com/document-sdk/net-pdf-library/html-to-pdf
62+

0 commit comments

Comments
 (0)