Convert pdf file to mhtml using

Hi experts,

Is there a way (free of cost/ subscription) to convert a pdf document to mhtml format in

Thanks in advance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
This video claims to show you how to convert pdf file to html.  Although it's not exactly what you asked, maybe it will help at least tell you what needs to be done.
Tina_BholeAuthor Commented:
Hi Dave,

Thanks for the video, but I need to do this programmatically without any user interaction.

Dave BaldwinFixer of ProblemsCommented:
This search will bring up a lot of info.  But writing your own converter is a major project.

This appears to be a .NET library to do the job.
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Joe WinogradDeveloperCommented:
Hi Tina,

Xpdf is a set of eight command line executables:

I have done numerous 5-minute EE video Micro Tutorials on the various utilities:
Xpdf - Command Line Utility for PDF Files - Part 1
Xpdf - Extract Images from PDF Files - Part 2
Xpdf - Convert PDF Files to Plain Text Files - Part 3
Xpdf - PDFinfo - Command Line Utility to Retrieve Page Count and Other Information from PDF Files
Xpdf - PDFdetach - Command Line Utility to Detach Attachments from PDF Files

The first one shows how to download/install it (not really "install" – it's a stand-alone executable). I list the other videos in case you have a need for those functions in other projects. But for this project, you'll want a utility which, unfortunately, I haven't done a video on...yet...the PDFtoHTML tool (pdftohtml.exe). Since it is a command line program, you can easily call it from your code. I don't know if it produces HTML to your satisfaction, but it's worth a spin.

In terms of licensing and cost, Xpdf is open source, licensed under the GNU General Public License (GPL) V2, with no cost stated at the website for non-commercial use. For commercial licensing, the Xpdf site says to see their parent company's site, Glyph & Cog.

Regards, Joe
Just offering an alternative which seems to be based on the above xpdf and have similar license conditions pdftoHTML link.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tina_BholeAuthor Commented:
Thanks darbid73.
I used this utility to convert the documents and it's now working well for me.
Joe WinogradDeveloperCommented:
Hi Tina,
To be clear, the link that darbid73 posted and that you accepted as the solution is based on a very old version (2.02) of the PDFtoHTML tool (pdftohtml.exe) that I mentioned in my post before darbid73's. There have been many fixes/improvements since version 2.02 — Xpdf is now on version 3.04. So when you run into problems with the 2.02-based tool, I recommend using the 3.04 version, the link for which is in my previous post. Regards, Joe
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.