I want to upload any file for e.g. (.txt,.doc,.docx) and want to save it as PDF in the database in MVC.
How to convert the file into pdf while uploading it to the d
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mohamed AbedallahRank #2,074 · 697 reputationPosted May 4, 2017, 6:26 AM EDT
I answered a similar question in the following post about using LEADTOOLS document converter class:
http://www.c-sharpcorner.com/forums/convert-a-jpgpngtxt-or-any-file-format-to-pdf-using-mvc5
Here is what the answer said:
One of good approaches is to use DocumentConverter class from LEADTOOLS which provides the ability to convert different image and document formats including (JPEG, PNG, TIFF, XLS, DOCX, etc.) to PDF or other formats. Check below link for more details and sample code:
https://www.leadtools.com/help/leadtools/v19m/dh/doxc/documentconverter.html
Nilesh JadavRank #109 · 20.3K reputationPosted May 3, 2017, 6:36 PM EDT
http://imar.spaanjaars.com/414/storing-uploaded-files-in-a-database-or-in-the-file-system-with-aspnet-20
S PRank #5,790 · 286 reputationPosted May 4, 2017, 7:32 AM EDT
Rahul PrasadRank #2,557 · 546 reputationPosted May 9, 2017, 5:38 PM EDT