Hello Friends !
I want to convert the Jpeg, BMP , PNG, DOC , xlsx files into PDF by using C# VS2010 coding.
Can Any one Helps !!!!
Thanks in advance.
Regards
Puneet Ahooja
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Raja TRank #685 · 3.5K reputationPosted Dec 30, 2015, 8:40 PM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 30, 2015, 9:31 PM EST
If you wan to convert file into pdf in c#.Then you can use third party library.
1.ITextsharp
2.Spire.PDF
3.PDFsharp
Check my article for Spire.PDF.ITextsharp large number of example in cshapcorner just search it.
http://www.c-sharpcorner.com/UploadFile/2a6dc5/convert-pdf-to-other-format-using-spire-pdf/
Dulal Hazarika2 reputationPosted Dec 31, 2015, 7:40 AM EST
The answer to the question depends on the result PDF file. Is it going to be searchable or not? If yes, you'll need an optical character recognition (OCR) to extract the text from the image files then create the PDF. There are OCR engines which can be used such as Tesseract and Lead Tools. These articles may be helpful:
http://www.codeproject.com/Articles/696537/How-to-Use-Tessnet-Library
http://www.codeproject.com/Articles/317163/OCR-with-LEADTOOLS-The-Better-Choice
If you want to convert the image file to PDF so that the PDF contains only the image (picture), the next article gives a good example on how to implement that:
http://www.codeproject.com/Articles/28609/Converting-Image-Files-to-PDF
puneet ahooja61 reputationPosted Jan 4, 2016, 12:35 AM EST
Rafnas T PRank #280 · 8.8K reputationPosted Jan 4, 2016, 12:45 AM EST
puneet ahooja61 reputationPosted Jan 4, 2016, 1:18 AM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Jan 4, 2016, 1:29 AM EST