Home > Enterprise >  PDF generation in C#, API, or JS free and works with Arabic language
PDF generation in C#, API, or JS free and works with Arabic language

Time:03-12

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. [here](https://media.discordapp.net/attachments/707481146610679868/952008859633975396/unknown.png?width=477&height=676)

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:

  1. Create a webpage with this layout
  2. Populate the data in the webpage
  3. Get the HTML markup of the webpage
  4. 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

See: https://community.coherentpdf.com/

  • Related