I have to convert jpg and png format images into pdf runtime and then upload using c# by IFormFile?
Please suggest, Should I go with ITextSharp or any other option?
I have to convert jpg and png format images into pdf runtime and then upload using c# by IFormFile?
Please suggest, Should I go with ITextSharp or any other option?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Marvin ReidPosted Mar 9, 2023, 2:53 PM
You can convert both your jpg and png format images to PDF files using the DocumentConverter. Here is some sample code that shows how you can handle this:
https://www.leadtools.com/help/sdk/tutorials/dotnet-convert-files-with-the-document-converter.html
Yogesh KhurpePosted Aug 9, 2021, 4:15 PM
Viorel SPosted Aug 9, 2021, 1:10 AM
You can use Spire.PDF (available on NuGet) to do the file format conversion.
Here is the code snippet for your reference:
Sachin SinghPosted Aug 7, 2021, 1:22 PM