cancel
Showing results for 
Search instead for 
Did you mean: 

Converting MHTML to HTML using Javascript in UI5

0 Kudos

Hi,

I need to convert a MHTML document to HTML or convert MHTML to a pdf.

Has anyone done this, leads please.

Regards,

Samad

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor
0 Kudos

NB: MHTML is not Microsoft HTM, suffix came from IETF 'MIME Encapsulation of Aggregate Documents, such as HTML'.

Did you try to extract the part(s) between tags such as 'Content-Type: text/html; <HTML[...]>' and '</HTML>' or to open the file in word and save it as html or print as pdf (using OLE)

Answers (1)

Answers (1)

0 Kudos

I just corrected the question. I want to eventually get a pdf from MHTML.

Can you please share more details or elaborate the above point. I need to achieve this using Javascript in UI5 or ABAP backend.

Regards,

Samad

raymond_giuseppi
Active Contributor
0 Kudos

Look at mht-to-html or similar source.