I have been struggling few days with PDF generation, either HTML to PDF or whatever.
I tried JS, C#, and APIs. But none of them made me satisfied with the result!.
I will share the template I am trying to reach out to.
Note that Commerce, Entertainment, and Transportation in the image are all dynamic values, so that they will change based on the data.
Could someone help me out, please?
Thanks
CodePudding user response:
- 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
CodePudding user response:
From C# run a command line like:
cpdf -add-text "300 SAR" -topleft 600 -font "Helvetica" -font-size 14 template.pdf -o step1.pdf