Hi there,
Thanks for your patience. In reference to PDFNEWNET-38977, we have investigated the issue.
We found that unfortunately for MHT to PDF conversion supplying of some one predefined Encoding does not make sense.
In general,MHT contains several parts , each of them can be put into MHT in it’s own encoding(they can differ). Please look into attached document with any text editor.
You can see there such pieces :
------=_NextPart_000_0000_01D0A4B0.B684CBE0<o:p></o:p>
mime-version: 1.0<o:p></o:p>
content-type: text/html;<o:p></o:p>
charset=“utf-8”<o:p></o:p>
content-transfer-encoding: quoted-printable<o:p></o:p>
content-location: <o:p></o:p>
…<o:p></o:p>
------=_NextPart_000_0000_01D0A4B0.B684CBE0<o:p></o:p>
mime-version: 1.0<o:p></o:p>
content-type: text/html;<o:p></o:p>
charset=“iso-8859-1”<o:p></o:p>
content-transfer-encoding: quoted-printable<o:p></o:p>
content-location: https://d1sojsgu0jwtb7.cloudfront.net/css/cc5dad54bd9c166d5a307792f7279b7b/player_embedded_mini.min.gz.css<o:p></o:p>
…<o:p></o:p>
------=_NextPart_000_0000_01D0A4B0.B684CBE0<o:p></o:p>
mime-version: 1.0<o:p></o:p>
content-type: text/html;<o:p></o:p>
charset=“utf-8”<o:p></o:p>
content-transfer-encoding: quoted-printable<o:p></o:p>
content-location: https://www.spreaker.com/embed/player/mini?show_id=583825&autoplay=false<o:p></o:p>
Please pay attention to 'charset' headers - they differ for different parts of same MHT. So, supplying of some one encoding for all MHT does not make sense : content of each piece must be processed with regard to encoding defined in relevant header of that piece (as it currently done in our code). So, we will not implement the feature cause it does not make sense.
However, we can implement some callback in MhtLoadOptions class , which will be called during processing of each piece and allow customer forcibly set encoding for each piece "on the fly".
But it requires not only the user's understanding of MHT basics, but even of differences of it's implementations for different generators of MHT(IE,MozillaFF's plugin etc) and it looks like it will overkill. (F.e sample MHT, contains >70 different pieces, including images, javascripts etc. , several of them are nested inside others etc, - so , I guess that implementation of such callback will be nontrivial issue on customer's side).
Nevertheless, please confirm whether you are really interested in such approach(callback)? If so, we can do that in future. But please note we can not implement this in near future.
We are sorry for the inconvenience caused.
Best Regards,