Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Has anyone converted a PDF to a MHTML document (yes the depeciated MS only format)?

I have the following scenario. We are requesting two reports from reporting services and then merging the results. We then need the option to output it as HTML with the images etc embedded and present it to the screen in the same format as the PDF.
http://www.codeproject.com/script/Membership/OAuthLogOn.aspx?auth=Google
I have looked at requesting the report as an MHTML document, but the problem is merging two together is not simple and would end up rather messy.

We have a library to merge PDFs together and this works fine, so our potential solution is to request the reports as PDFs, merge them and then output them as MHTML (it gets returned from the business layer as a memory stream).

If anyone has any knowledge of how to do this (or a better way), your advice is welcome!
Posted
Comments
Sergey Alexandrovich Kryukov 22-Nov-13 11:16am    
I think MHTML standard was not a bad idea, too bad the standard proposal hasn't become a standard, circulated since 1999.
One idea I have is: see some software forming multipart mail messages. The structure is more or less similar to MHTML, also a set of different MIME parts.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900