Document Conversion Service uses Internet Explorer to convert HTM, HTML and MHT files. When dealing with MHT and HTML files with large images, and older style HTML files formatted for earlier browser versions the options for image scaling and browser emulation may need to be configured to produce the desired output file.

These options are set in the Internet Explorer section of the application configuration file. Changing these options will require a restart of Document Conversion Service for the new settings to take effect.

Opening the Configuration File

Go to Start - All Programs - PEERNET Document Conversion Service 3.0 - Edit DCS Configuration File to edit the configuration file using the DCS Editor. The configuration file can also be opened in any XML editor and can be found here:

Configuration file location:

C:\Program Files\Document Conversion Service 3.0\Core\PNJobItemProcessor.exe.config

 

Configuration Section for Internet Explorer

 

<AppFactories>

  <Factories>

 

    <AppFactory Name="Internet Explorer"

                Type="PEERNET.PNDocConv.Applications.PNInternetExplorerApplicationFactory"

                Assembly="PNInternetExplorerApplicationFactory">

        <Settings>

          <add Name="Enabled" Value="auto"/>

          <add Name="MaxInstances" Value="auto"/>

          <add Name="RecycleThreshold" Value="0"/>

          <add Name="DocumentOpenTimeout" Value="360000"/>

 

          <!-- Value range 30 - 100 -->

          <add Name="ConverterPlugIn.PNIExplorer.ShrinkToFitScaleMin" Value="30"/>

 

          <!-- Values: Empty string, IE7, IE8, IE8FORCE, IE9, IE9FORCE, IE10, IE10FORCE, IE11, IE11FORCE -->

          <add Name="ConverterPlugIn.PNIExplorer.BrowserEmulation" Value="" />

 

        </Settings>

      </AppFactory>

    ... 

    

  </Factories>

  <Settings>

    <!-- Global factory settings -->

    <add Name="MaxInstances" Value="auto"/>

    <add Name="RecycleThreshold" Value="0"/>

  </Settings>

</AppFactories>

Setting the Minimum Scale For Internet Explorer

HTML files and MHT files such as email messages from Outlook can sometimes have very wide images. By default, these files are always printed with Shrink-to-Fit enabled and a minimum scale factor of 30. This means that the page will shrink to at most 30% of its original size to fit the image contents on the page.

If you need the images to be scaled larger, the setting ConverterPlugIn.PNIExplorer.ShrinkToFitScaleMin can be adjusted from between 30 to 100 to get the size of image you want.

This option is set at the application level and cannot be changed per file. Changes to this setting require a restart of Document Conversion Service to take effect.

Setting the Browser Emulation for Internet Explorer

In certain cases, older HTML files created for previous versions of Internet Explorer will not convert correctly when printed using the latest version of Internet Explorer.  This is because Internet Explorer runs with Edge compatibility by default and it is this new compatibility and rendering that has a problem with the older style HTML.

If you have these type of files, the setting ConverterPlugIn.PNIExplorer.BrowserEmulation can be used to force Internet Explorer to emulate older versions of the browser so that the files are rendered properly based on the older browsers rendering engine.

This option is set at the application level and cannot be changed per file. Changes to this setting require a restart of Document Conversion Service to take effect.