856 lines · 39.5 KB · HTML
RawDownload
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>ps2pdf: PostScript-to-PDF converter</title><!-- $Id: Ps2pdf.htm,v 1.88 2005/10/20 19:46:23 ray Exp $ --><!-- Originally: ps2pdf.txt --><link rel="stylesheet" type="text/css" href="gs.css" title="Ghostscript Style"></head> <body><!-- [1.0 begin visible header] ============================================ --> <!-- [1.1 begin headline] ================================================== --> <h1><tt>ps2pdf</tt>: PostScript-to-PDF converter</h1> <!-- [1.1 end headline] ==================================================== --> <!-- [1.2 begin table of contents] ========================================= --> <h2>Table of contents</h2> <blockquote><ul><li><a href="#Overview">Overview</a><li><a href="#Usage">Usage</a><li><a href="#Orientation">Setting page orientation</a><li><a href="#Options">Options</a><li><a href="#PDFX">Creating a PDF/X-3 document</a><li><a href="#Limitations">Limitations</a><li><a href="#PPD">Ghostscript PDF Printer Description</a><li><a href="#Problems">Known problems</a><li><a href="#Ps2pdf_vs_AD">Comparison of <b><tt>ps2pdf</tt></b> and Acrobat Distiller</a><li><a href="#Acknowledgments">Acknowledgments</a></ul></blockquote> <!-- [1.2 end table of contents] =========================================== --> <!-- [1.3 begin hint] ====================================================== --> <p>For other information, see the <a href="Readme.htm">Ghostscriptoverview</a>. <!-- [1.3 end hint] ======================================================== --> <hr> <!-- [1.0 end visible header] ============================================== --> <!-- [2.0 begin contents] ================================================== --> <h2><a name="Overview"></a>Overview</h2> <b><tt>ps2pdf</tt></b> is a work-alike for nearly all the functionality (butnot the user interface) of Adobe's Acrobat<small><sup>TM</sup></small>Distiller<small><sup>TM</sup></small> product: it converts PostScript filesto Portable Document Format (PDF) files. <p><b><tt>ps2pdf</tt></b> is implemented as a very small command script (batchfile) that invokes Ghostscript, selecting a special "output device" called<b><tt>pdfwrite</tt></b>.  In order to use <b><tt>ps2pdf</tt></b>, the<b><tt>pdfwrite</tt></b> device must be included in the makefile whenGhostscript was compiled; see the <ahref="Make.htm#Features_and_devices">documentation on buildingGhostscript</a> for details: this is currently the case on all platforms, inGhostscript as we distribute it. <hr> <h2><a name="Usage"></a>Usage</h2> <p>The usage for <b><tt>ps2pdf</tt></b> is <blockquote><b><tt>ps2pdf</tt></b> <em>[options] input.[e]ps output.pdf</em></blockquote> <p>or, on Unix systems and some versions of Windows NT and OS/2 <blockquote><b><tt>ps2pdf</tt></b> <em>input.[e]ps</em></blockquote> <p>which is equivalent to <blockquote><b><tt>ps2pdf</tt></b> <em>input.[e]ps input.pdf</em></blockquote> <p>There are actually several different <b><tt>ps2pdf</tt></b><em>*</em> scripts:the name <b><tt>ps2pdf</tt></b> above refers to any of them. <ul> <li><b><tt>ps2pdf12</tt></b> produces PDF 1.2 output (Acrobat 3-and-latercompatible). <li><b><tt>ps2pdf13</tt></b> produces PDF 1.3 output (Acrobat 4-and-latercompatible). <li><b><tt>ps2pdf14</tt></b> produces PDF 1.4 output (Acrobat 5-and-latercompatible). <li><b><tt>ps2pdf</tt></b> per se currently produces PDF 1.2 output.However, this may change in the future.  If you care about the compatibilitylevel of the output, use <b><tt>ps2pdf12</tt></b>, <b><tt>ps2pdf13</tt></b>,or <b><tt>ps2pdf14</tt></b>, or use the<b><tt>-dCompatibilityLevel=</tt></b><em>1.x</em> switch in the commandline. </ul> <p>Note that if you specify a value for <b><tt>PDFSETTINGS</tt></b>, thischooses PDF 1.3 or 1.4 output depending on the value of<b><tt>PDFSETTINGS</tt></b>: this overrides the output format specified bythe script name.  You can still specify the output format by using<b><tt>-dCompatibilityLevel=</tt></b> <em>after</em><b><tt>-dPDFSETTINGS=</tt></b>. <p>All of these scripts actually call a script named <b><tt>ps2pdfwr</tt></b>or <b><tt>ps2pdfxx</tt></b>.  The Unix <b><tt>ps2pdfwr</tt></b> scriptassumes that the Ghostscript executable is named <b><tt>gs</tt></b>; it isunlikely that you will need to change this.  The DOS and MS Windows<b><tt>ps2pdfxx.bat</tt></b> script uses the value of the<b><tt>GSC</tt></b> environment variable, if defined, as the name of theexecutable; otherwise the script assumes the executable is named<b><tt>gswin32c</tt></b>.  So in these environments, if the executable has adifferent name, you must set <b><tt>GSC</tt></b> to the name of theexecutable. <hr> <h2><a name="Orientation"></a>Setting page orientation</h2> <p>By default Ghostscript determines viewing page orientation based on the dominanttext orientation on the page. Sometimes, when the page has text in severalorientations or has no text at all, wrong orientation can be selected. <p>Acrobat Distiller parameter <b><tt>AutoRotatePages</b></tt> controls theautomatic orientation selection algorithm. On Ghostscript, besidesinput stream, Distiller parameters can be given as command line arguments.For instance: <b><tt>-dAutoRotatePages=/None</b></tt> or<b><tt>/All</b></tt> or <b><tt>/PageByPage</b></tt>. <p>When there is no text on the page or automatic page rotation is set to<b><tt>/None</b></tt> an orientation value from setpagedevice is used.Valid values are: <b><tt>0</b></tt> (portrait),<b><tt>3</b></tt> (landscape), <b><tt>2</b></tt> (upside down),and <b><tt>1</b></tt> (seascape). The orientation can be set from thecommand line as <b><tt>-c "&lt;&lt;/Orientation 3&gt;&gt; setpagedevice"</b></tt>using Ghostscript directly but cannot be set in <b><tt>ps2pdf</b></tt>.See <a href="#Limitations">Limitations</a> below.</pre> <p>Ghostscript passes the orientation values from DSC comments to<b><tt>pdfwrite</b></tt> driverbut they are effectively ignored there. This appears to be consistent withDistiller 5 behavior. <hr> <h2><a name="Options"></a>Options</h2> <p>The <em>options</em> in the command line may include any switches that maybe used with Ghostscript's PostScript and PDF interpreter (see <ahref="Use.htm#Switches">here</a> for a complete list), although almost noneof them are useful with <b><tt>ps2pdf</tt></b>.  The following may beuseful: <dl> <dt><b><tt>-r</tt></b><em>resolution</em><dd>Sets the resolution for pattern fills and for fonts that must beconverted to bitmaps. <dt><b><tt>-dProcessColorModel=</tt></b><em>device_color_space</em> <dd>Setsthe color space to be used for device-dependent colors in theoutput. <em>device_color_space</em> may be <b><tt>/DeviceGray</tt></b>,<b><tt>/DeviceRGB</tt></b>, or <b><tt>/DeviceCMYK</tt></b>; the defaultvalue is <b><tt>/DeviceRGB</tt></b>.  Note that this does not affect images:see <a href="#Limitations">Limitations</a> below. </dl> <p>More importantly, <em>options</em> may include<b><tt>-d</tt></b><em>parameter</em>=<em>value</em> or<b><tt>-s</tt></b><em>parameter</em>=<em>string</em> switches for setting"distiller parameters", Adobe's documented parameters for controlling theconversion process.  The PostScript <b><tt>setdistillerparams</tt></b> and<b><tt>currentdistillerparams</tt></b> operators are also recognized whenrunning <b><tt>ps2pdf</tt></b>, and provide an equivalent way to set theseparameters from within the PostScript input file. <p><b><tt>ps2pdf</tt></b> also recognizes the following options: <dl> <dt><b><tt>-dCompressFonts=</tt></b><em>boolean</em><dd>Defines whether <b><tt>ps2pdf</tt></b> will compress embedded fonts inthe output.  The default value is <b><tt>true</tt></b>; the<b><tt>false</tt></b> setting is intended only for debugging. <dt><b><tt>-dMaxInlineImageSize=</tt></b><em>integer</em><dd>Specifies the maximum size of an inline image, in bytes. For images largerthan this size, <b><tt>ps2pdf</tt></b> will create an XObject instead of embeddingthe image into the context stream.The default value is <b><tt>4000</tt></b>.Note that redundant inline images must be embedded each time they occur in the document, while multiple references can be made to a single XObject image. Thereforeit may be advantageous to set a small or zero value if the source document is expectedto contain multiple identical images, reducing the size of the generated PDF. <dt><b><tt>-dPDFSETTINGS=</tt></b><em>configuration</em><dd>Presets the "distiller parameters" to one of four predefined settings: <ul> <li><b><tt>/screen</tt></b> selects low-resolution output similar to theAcrobat Distiller "Screen Optimized" setting. <li><b><tt>/ebook</tt></b> selects medium-resolution output similar to theAcrobat Distiller "eBook" setting. <li><b><tt>/printer</tt></b> selects output similar to the Acrobat Distiller"Print Optimized" setting. <li><b><tt>/prepress</tt></b> selects output similar to Acrobat Distiller"Prepress Optimized" setting. <li><b><tt>/default</tt></b> selects output intended to be useful across awide variety of uses, possibly at the expense of a larger output file. </ul> </dl> <p>The following option controls a conversion into PDF/X-3:<p> <dl><dt><b><tt>-dPDFX=</tt></b><em>boolean</em><dd>Specifies the generated document to follow the PDF/X-3 standard.When true, a <b><tt>DefaultRGB</b></tt> <b><tt>ColorSpace</b></tt> resource must be defined, andoptions <b><tt>NOSUBSTDEVICECOLORS</b></tt>, <b><tt>NOCIE</b></tt> must not be specified.Default value is <b><tt>false</b></tt>. </dl> <p> When generating a PDF/X-3 document, Ghostscript performs the following special actions to satisfy the PDF/X-3 standard :<ul><li> All fonts are being embedded.<li> <b><tt>DeviceRGB</b></tt> color space is being substituted with <b><tt>DefaultRGB</b></tt> color space,which must be defined in the <b><tt>ColorSpace</b></tt> category.The easiest way is to provide it in the <b><tt>DefaultRGB</b></tt> file in the resource directory. <li> <b><tt>DeviceRGB</b></tt> color values are being passed unchanged.If an user needs an untrivial color adjustment, an untrivial <b><tt>DefaultRGB</b></tt> color space to be defined.<li> Transfer functions and halftone phases are being skipped.<li> <b><tt>/PS pdfmark</b></tt> interpretes the <b><tt>DataSource</b></tt> stream or file.</ul>      <p>The following options control a conversion into PDF 1.2:<p> <dl> <dt><b><tt>-dPatternImagemask=</tt></b><em>boolean</em><dd>With <b><tt>CompatibilityLevel &LT 1.3 </b></tt> it specifies whether the target viewerhandles <b><tt>ImageMask</b></tt> with a pattern color. Some old viewers,such as Ghostscript 3.30 fail with such constructs.Seting this option to false, one can get more compatibility,but the mask interpolation is lost.With <b><tt>CompatibilityLevel &GT= 1.3 </b></tt> this option is being ignored.Default value is <b><tt>false</b></tt>. <dt><b><tt>-dMaxClipPathSize=</tt></b><em>integer</em><dd>Specifies the maximum number of elements in the clipping paththat the target viewer can handle. This option is used only with <b><tt>CompatibilityLevel &LT 1.3 </b></tt> and <b><tt>PatternImagemask=false</tt></b>,and only when converting a mask into a clipping path.If the clipping path exceeds the specified size,the masked image and the clipping path is being decomposed into smaller images.The value of the option counts straight path segments(curved segments are not used for representing a mask).Default value is <b><tt>12000</b></tt>. <dt><b><tt>-dMaxShadingBitmapSize=</tt></b><em>integer</em><dd>With <b><tt>CompatibilityLevel &LT 1.3 </b></tt> it specifies the maximum number of bytes allowed for representing a shading as a bitmap.If a shading exceeds this value, the resolution of the output bitmapis being reduces to fit into the specified frame.Note that the number of bytes depends on the number of color componentsin <b><tt>ProcessColorModel</b></tt>, assumes 8 bits per sample,and doesn't account an image compression or filtering.Also note that reducing the resolution results unsmooth shading boundaries. With <b><tt>CompatibilityLevel &GT= 1.3 </b></tt> this option is being ignored.Default value is <b><tt>256000</b></tt>.For the best quality one can set the maximal integer value,but the output file size may dramatically increase.Therefore the user should choose a compromise value. <dt><b><tt>-dHaveTrueTypes=</tt></b><em>boolean</em><dd>With <b><tt>CompatibilityLevel &LT 1.3 </b></tt> it specifies whether the target viewer can handle TrueType fonts.If not, TrueType fonts are being converted into raster fontswith resolution specified in </b></tt>HWResolution</b></tt>.With <b><tt>CompatibilityLevel &GT= 1.3 </b></tt> this option is being ignored.Default value is <b><tt>true</b></tt>. </dl> <p>The following option controls a conversion into PDF 1.3:<p> <dl> <dt><b><tt>-dHaveTransparency=</tt></b><em>boolean</em><dd>With <b><tt>CompatibilityLevel &GT= 1.4 </b></tt> it specifies whether the target viewer can handle PDF 1.4 transparency objects.If not, transparency objects are being converted into plain images.Default value is <b><tt>true</b></tt>. </dl> <a name="Encryption"></a>The following switches are used for creating encrypted documents : <dl><dt><b><tt>-sOwnerPassword=</tt></b><em>string</em><dd>Defines that the document be encrypted with the specified owner password.</dl> <dl><dt><b><tt>-sUserPassword=</tt></b><em>string</em><dd>Defines the user password for opening the document.If empty, the document can be opened with no password,but the owner password is required to edit it.</dl> <dl><dt><b><tt>-dPermissions=</tt></b><em>number</em><dd>Defines the PDF permissions flag field. Negative values are allowedto represent unsigned integers with the highest bit set. See the PDFReference manual for the meaning of the flag bits.</dl> <dl><dt><b><tt>-dEncryptionR=</tt></b><em>number</em><dd>Defines the encryption method revision number - either 2 or 3.</dl> <dl><dt><b><tt>-dKeyLength=</tt></b><em>number</em><dd>Defines the length (in bits) of the encryption key.Must be a multiple of 8 in the interval [40, 128].If the length isn't 40, <b><tt>-dEncryptionR</tt></b> must be 3.</dl>  <p><b><tt>ps2pdf</tt></b> recognizes all of the Acrobat Distiller 5 parametersdefined in the DistillerParameters document included in the <a href="http://partners.adobe.com/public/developer/acrobat/sdk/index.html">Acrobat SDK</a>.Cells in the tablecontaining '=' mean that the value of the parameter is the same as in the"default" column. <blockquote><table cellpadding=0 cellspacing=0><tr valign=bottom>	<th align=left>Parameter name	<td>&nbsp;&nbsp;&nbsp;&nbsp;	<th align=left>Notes	<td>&nbsp;&nbsp;	<th align=left>default	<td>&nbsp;&nbsp;	<th align=left>screen	<td>&nbsp;&nbsp;	<th align=left>ebook	<td>&nbsp;&nbsp;	<th align=left>printer	<td>&nbsp;&nbsp;	<th align=left>prepress<tr>	<td colspan=13><hr><tr valign=top><td><b><tt>AlwaysEmbed</tt></b><td><td><td><td>[]<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>AntiAliasColorImages</tt></b><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>AntiAliasGrayImages</tt></b><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>AntiAliasMonoImages</tt></b><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>ASCII85EncodePages</tt></b><td><td><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>AutoFilterColorImages</tt></b><td><td><a href="#note_1">(1)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>AutoFilterGrayImages</tt></b><td><td><a href="#note_1">(1)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>AutoPositionEPSFiles</tt></b><td><td><a href="#note_0">(0)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>AutoRotatePages</tt></b><td><td><td><td>/PageByPage<td><td>/PageByPage<td><td>/All<td><td>/None<td><td>/None<tr valign=top><td><b><tt>Binding</tt></b><td><td><a href="#note_0">(0)</a><td><td>/Left<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>CalCMYKProfile</tt></b><td><td><a href="#note_0">(0)</a><td><td>()<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>CalGrayProfile</tt></b><td><td><a href="#note_0">(0)</a><td><td>()<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>CalRGBProfile</tt></b><td><td><a href="#note_0">(0)</a><td><td>()<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>CannotEmbedFontPolicy</tt></b><td><td><a href="#note_0">(0)</a><td><td>/Warning<td><td>/Warning<td><td>/Warning<td><td>/Warning<td><td>/Error<tr valign=top><td><b><tt>ColorACSImageDict</tt></b><td><td><td><td><a href="#note_7">(note 7)</a><td><td><a href="#note_10">(note 10)</a><td><td><a href="#note_10">(note 10)</a><td><td><a href="#note_8">(note 8)</a><td><td><a href="#note_9">(note 9)</a><tr valign=top><td><b><tt>ColorConversionStrategy</tt></b><td><td><a href="#note_0">(0</a>,<a href="#note_6">6)</a><td><td>/LeaveColorUnchanged<td><td>/sRGB<td><td>/sRGB<td><td>/UseDeviceIndependentColor<td><td>/LeaveColorUnchanged<tr valign=top><td><b><tt>ColorImageDepth</tt></b><td><td><td><td>-1<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>ColorImageDict</tt></b><td><td><td><td><a href="#note_7">(note 7)</a><td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>ColorImageFilter</tt></b><td><td><td><td>/DCTEncode<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>ColorImageDownsampleThreshold</tt></b><td><td><td><td>1.5<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>ColorImageDownsampleType</tt></b><td><td><a href="#note_3">(3)</a><td><td>/Subsample<td><td>/Average<td><td>/Bicubic<td><td>/Bicubic<td><td>/Bicubic<tr valign=top><td><b><tt>ColorImageResolution</tt></b><td><td><td><td>72<td><td>72<td><td>150<td><td>300<td><td>300<tr valign=top><td><b><tt>CompatibilityLevel</tt></b><td><td><td><td>1.4<td><td>1.3<td><td>1.4<td><td>1.4<td><td>1.4<tr valign=top><td><b><tt>CompressPages</tt></b><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>ConvertCMYKImagesToRGB</tt></b><td><td><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>ConvertImagesToIndexed</tt></b><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>CoreDistVersion</tt></b><td><td><td><td>4000<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>CreateJobTicket</tt></b><td><td><a href="#note_0">(0)</a><td><td>false<td><td>false<td><td>false<td><td>true<td><td>true<tr valign=top><td><b><tt>DefaultRenderingIntent</tt></b><td><td><td><td>/Default<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>DetectBlends</tt></b><td><td><a href="#note_0">(0)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>DoThumbnails</tt></b><td><td><a href="#note_0">(0)</a><td><td>false<td><td>false<td><td>false<td><td>false<td><td>true<tr valign=top><td><b><tt>DownsampleColorImages</tt></b><td><td><td><td>false<td><td>true<td><td>true<td><td>false<td><td>false<tr valign=top><td><b><tt>DownsampleGrayImages</tt></b><td><td><td><td>false<td><td>true<td><td>true<td><td>false<td><td>false<tr valign=top><td><b><tt>DownsampleMonoImages</tt></b><td><td><td><td>false<td><td>true<td><td>true<td><td>false<td><td>false<tr valign=top><td><b><tt>EmbedAllFonts</tt></b><td><td><td><td>true<td><td>false<td><td>true<td><td>true<td><td>true<tr valign=top><td><b><tt>EmitDSCWarnings</tt></b><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>EncodeColorImages</tt></b><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>EncodeGrayImages</tt></b><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>EncodeMonoImages</tt></b><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>EndPage</tt></b><td><td><a href="#note_0">(0)</a><td><td>-1<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>GrayACSImageDict</tt></b><td><td><td><td><a href="#note_7">(note 7)</a><td><td><a href="#note_7">(note 7)</a><td><td><a href="#note_10">(note 10)</a><td><td><a href="#note_8">(note 8)</a><td><td><a href="#note_9">(note 9)</a><tr valign=top><td><b><tt>GrayImageDepth</tt></b><td><td><td><td>-1<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>GrayImageDict</tt></b><td><td><td><td><a href="#note_7">(note 7)</a><td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>GrayImageDownsampleThreshold</tt></b><td><td><td><td>1.5<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>GrayImageDownsampleType</tt></b><td><td><a href="#note_3">(3)</a><td><td>/Subsample<td><td>/Average<td><td>/Bicubic<td><td>/Bicubic<td><td>/Bicubic<tr valign=top><td><b><tt>GrayImageFilter</tt></b><td><td><td><td>/DCTEncode<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>GrayImageResolution</tt></b><td><td><td><td>72<td><td>72<td><td>150<td><td>300<td><td>300<tr valign=top><td><b><tt>ImageMemory</tt></b><td><td><a href="#note_0">(0)</a><td><td>524288<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>LockDistillerParams</tt></b><td><td><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>LZWEncodePages</tt></b><td><td><a href="#note_2">(2)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>MaxSubsetPct</tt></b><td><td><td><td>100<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>MonoImageDepth</tt></b><td><td><td><td>-1<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>MonoImageDict</tt></b><td><td><td><td><<K -1>><td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>MonoImageDownsampleThreshold</tt></b><td><td><td><td>1.5<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>MonoImageDownsampleType</tt></b><td><td><td><td>/Subsample<td><td>/Average<td><td>/Bicubic<td><td>/Bicubic<td><td>/Bicubic<tr valign=top><td><b><tt>MonoImageFilter</tt></b><td><td><td><td>/CCITTFaxEncode<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>MonoImageResolution</tt></b><td><td><td><td>300<td><td>300<td><td>300<td><td>1200<td><td>1200<tr valign=top><td><b><tt>NeverEmbed</tt></b><td><td><td><td><a href="#note_11">(note 11)</a><a href="#note_12">(note 12)</a><td><td><a href="#note_11">(note 11)</a><a href="#note_12">(note 12)</a><td><td><a href="#note_11">(note 11)</a><a href="#note_12">(note 12)</a><td><td>[]<a href="#note_12">(note 12)</a><td><td>[]<a href="#note_12">(note 12)</a><tr valign=top><td><b><tt>OffOptimizations</tt></b><td><td><td><td>0<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>OPM</tt></b><td><td><td><td>1<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>Optimize</tt></b><td><td><a href="#note_0">(0</a>,<a href="#note_5">5)</a><td><td>false<td><td>true<td><td>true<td><td>true<td><td>true<tr valign=top><td><b><tt>ParseDSCComments</tt></b><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>ParseDSCCommentsForDocInfo</tt></b><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>PreserveCopyPage</tt></b><td><td><a href="#note_0">(0)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>PreserveEPSInfo</tt></b><td><td><a href="#note_0">(0)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>PreserveHalftoneInfo</tt></b><td><td><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>PreserveOPIComments</tt></b><td><td><a href="#note_0">(0)</a><td><td>false<td><td>false<td><td>false<td><td>true<td><td>true<tr valign=top><td><b><tt>PreserveOverprintSettings</tt></b><td><td><td><td>false<td><td>false<td><td>false<td><td>true<td><td>true<tr valign=top><td><b><tt>sRGBProfile</tt></b><td><td><a href="#note_0">(0)</a><td><td>()<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>StartPage</tt></b><td><td><a href="#note_0">(0)</a><td><td>1<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>SubsetFonts</tt></b><td><td><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>TransferFunctionInfo</tt></b><td><td><a href="#note_4">(4)</a><td><td>/Preserve<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>UCRandBGInfo</tt></b><td><td><td><td>/Remove<td><td>/Remove<td><td>/Remove<td><td>/Preserve<td><td>/Preserve<tr valign=top><td><b><tt>UseFlateCompression</tt></b><td><td><a href="#note_2">(2)</a><td><td>true<td><td>=<td><td>=<td><td>=<td><td>=<tr valign=top><td><b><tt>UsePrologue</tt></b><td><td><a href="#note_0">(0)</a><td><td>false<td><td>=<td><td>=<td><td>=<td><td>=</table></blockquote> <p><a name="note_0">(note 0)</a>This parameter can be set and queried, but currently has no effect. <p><a name="note_1">(note 1)</a>Currently, <b><tt>AutoFilterxxxImages</tt></b> doesn't examine the image todecide between JPEG and LZW or Flate compression: it always uses Flate compression.  If you want to force JPEG compression, use<b><tt>-dAutoFilterxxxImages=false</tt></b>. <p><a name="note_2">(note 2)</a>Because of Unisys's threats regarding the Welch patent,<b><tt>ps2pdf</tt></b> does not actually use LZW compression: instead, ittreats all requests for LZW compression as calling for Flate compression.Concomitantly, <tt>UseFlateCompression</tt> is treated as always on, andthe value of this parameter is ignored as with note 0. Now that the patenthas expired, we could change this should it become worthwhile.

Lines 1–500 of 856.