'How to Generate a PDF in a Web Application [closed]
Solution 1:[1]
- Create a webpage with this layout
- Populate the data in the webpage
- Get the HTML markup of the webpage
- Use a library like HiQPDF, to pass the HTML Data. This should generate the PDF for you
Solution 2:[2]
From C# run a command line like:
cpdf -add-text "300 SAR" -topleft 600 -font "Helvetica" -font-size 14 template.pdf -o step1.pdf
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Zee |
| Solution 2 | JBrooks |

](https://i.stack.imgur.com/jW4fF.png)