Ghostscript Converter Options

These options control the behavior of the Ghostscript converter used by Document Conversion Service. Table values in bold text are the default value for that setting.

 

Sample Profile

 
<?xml version="1.0" encoding="utf-8"?>
<Profile Type="0"
         DisplayName="Ghostscript Custom Font TIFF 300dpi"
         Description ="Created TIFF from Ghostscript using custom fonts.">
  <Settings>
 
    <!-- Antialias options -->
     <add Name="ConverterPlugIn.PNGhostscriptConverter.TextAntiAlias" Value="4"/>
     <add Name="ConverterPlugIn.PNGhostscriptConverter.GraphicsAntiAlias" Value="4"/>
 
     <!-- Search these folders for matching fonts -->
     <add Name="ConverterPlugIn.PNGhostscriptConverter.FontPath"

          Value="C:\psfonts;c:\Windows\Fonts;C:\MyFonts"/>
 
    <!-- Output file options -->
    <add Name="Devmode settings;Resolution" Value="300"/>
    <add Name="Save;Output File Format" Value="TIFF Multipaged"/>
    ...
    
  </Settings>
</Profile>

 

 

Code Sample - C#

 
PNDocConvQueueServiceLib.PNDocConvQueueItem item = null;

 

// Create the conversion item

item = new PNDocConvQueueServiceLib.PNDocConvQueueItem();

 

// Set conversion settings

item.Set("ConverterPlugIn.PNGhostscriptConverter.TextAntiAlias","4");

item.Set("ConverterPlugIn.PNGhostscriptConverter.Graphics","4");

 

item.Set("ConverterPlugIn.PNGhostscriptConverter.FontPath",

         @"C:\psfonts;c:\Windows\Fonts;C:\MyFonts");

...

// convert the file

item.Convert("Ghostscript",

             @"C:\Test\ArchiveReport.ps",

             @"C:\Test\Out\ConvertedReport");

 

Code Sample - VB.NET

 

Dim item As PNDocConvQueueServiceLib.IPNDocConvQueueItem

 

 ' Create the conversion item

item = New PNDocConvQueueServiceLib.PNDocConvQueueItem()

 

' Set conversion settings

item.Set("ConverterPlugIn.PNGhostscriptConverter.TextAntiAlias","4")

item.Set("ConverterPlugIn.PNGhostscriptConverter.Graphics","4")

 

item.Set("ConverterPlugIn.PNGhostscriptConverter.FontPath", _

         "C:\psfonts;c:\Windows\Fonts;C:\MyFonts")

 

...

' convert the file

item.Convert("Ghostscript", _

             "C:\Test\ArchiveReport.ps", _

             "C:\Test\Out\ConvertedReport")

 

 

Conversion Settings - Page Setup

Name:

ConverterPlugIn.PNGhostscriptConverter.TextAntiAlias

 

The size of the subsample box used when antialiasing text in the file. Antialiasing is used to improve the quality of the text on the page when converted to an image. A subsample box of 4 will produce the best result. The lower subsample values will increase the speed of conversion but can affect the image quality.

 

Values:

The size of the subsample box can be 4, 2 or 1. The default is 4.

 

Name:

ConverterPlugIn.PNGhostscriptConverter.GraphicsAntiAlias

 

The size of the subsample box used when antialiasing graphics in the file. Antialiasing is used to improve the quality of any graphics on the page when converted to an image of a different resolution. A subsample box of 4 will produce the best result. The lower subsample values will increase the speed of conversion but can affect the image quality.

 

Values:

The size of the subsample box can be 4, 2 or 1. The default is 4.

 

Name:

ConverterPlugIn.PNGhostscriptConverter.FontPath

 

By default, the special Windows Fonts folder and the folder c:\psfonts are used by Ghostscript to find the fonts used in the Postscript or PDF documents. You can override this setting by  providing your own semicolon-separated list of folders in which to search.

 

Values:

String value containing a semi-colon separated list of folders.