ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Attributes | List of all members
ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument Class Reference

Ghostscript argument names More...

Public Attributes

const string TextAlphaBits = "-dTextAlphaBits="
 Control the use of subsample antialiasing; highly recommended for producing high quality rasterizations. The subsampling box size n should be 4 for optimum output, but smaller values can be used for faster rendering. Allowed values are 1, 2 or 4. More...
 
const string GraphicsAlphaBits = "-dGraphicsAlphaBits="
 Control the use of subsample antialiasing; highly recommended for producing high quality rasterizations. The subsampling box size n should be 4 for optimum output, but smaller values can be used for faster rendering. Allowed values are 1, 2 or 4. More...
 
const string AlignToPixels = "-dAlignToPixels="
 Chooses glyph alignment to integral pixel boundaries (if set to the value 1) or to subpixels (value 0). Subpixels are a smaller raster grid which is used internally for text antialiasing. The number of subpixels in a pixel usually is 2^TextAlphaBits, but this may be automatically reduced for big characters to save space in character cache. More...
 
const string GridFitTT = "-dGridFitTT="
 This specifies the initial value for the implementation specific user parameter GridFitTT. It controls grid fitting of True Type fonts (Sometimes referred to as "hinting", but strictly speaking the latter is a feature of Type 1 fonts). Setting this to 2 enables automatic grid fitting for True Type glyphs. The value 0 disables grid fitting. The default value is 2. For more information see the description of the user parameter GridFitTT. More...
 
const string FixedMedia = "-dFIXEDMEDIA"
 Causes the media size to be fixed after initialization, forcing pages of other sizes or orientations to be clipped. This may be useful when printing documents on a printer that can handle their requested paper size but whose default is some other size. More...
 
const string Height = "-dDEVICEHEIGHT="
 Specifies the output height in pixels. More...
 
const string Width = "-dDEVICEWIDTH="
 Specifies the output width in pixels. More...
 
const string Batch = "-dBATCH"
 Causes Ghostscript to exit after processing all files named on the command line, rather than going into an interactive loop reading PostScript commands. Equivalent to putting -c quit at the end of the command line. More...
 
const string NoPause = "-dNOPAUSE"
 Disables the prompt and pause at the end of each page. Normally one should use this (along with -dBATCH) when producing output on a printer or to a file; it also may be desirable for applications where another program is "driving" Ghostscript." More...
 
const string Quiet = "-dQUIET"
 Suppresses routine information comments on standard output. This is currently necessary when redirecting device output to standard output. More...
 
const string File = "-sFile="
 Sets input file parameter. More...
 
const string NoDisplay = "-dNODISPLAY"
 Initializes Ghostscript with a null device (a device that discards the output image) rather than the default device or the device selected with -sDEVICE=. This is usually useful only when running PostScript code whose purpose is to compute something rather than to produce an output image. More...
 
const string OutputDevice = "-sDEVICE="
 Output device. More...
 
const string OutputFile = "-sOutputFile="
 Output file path. More...
 
const string EpsFitPage = "-dEPSFitPage"
 Resize an EPS file to fit the page. This is useful for enlarging an EPS file to fit the paper size when printing. More...
 
const string EpsCrop = "-dEPSCrop"
 Crop an EPS file to the bounding box. This is useful when converting an EPS file to a bitmap. More...
 
const string PdfFitPage = "-dPDFFitPage"
 Rather than selecting a PageSize given by the PDF MediaBox, TrimBox (see -dUseTrimBox), or CropBox (see -dUseCropBox), the PDF file will be scaled to fit the current device page size (usually the default page size). This is useful to avoid clipping information on a PDF document when sending to a printer that may have unprintable areas at the edge of the media larger than allowed for in the document. This is also useful for creating fixed size images of PDF files that may have a variety of page sizes, for example thumbnail images. More...
 
const string FirstPage = "-dFirstPage="
 Begins interpreting on the designated page of the PDF document. More...
 
const string LastPage = "-dLastPage="
 Stops interpreting on the designated page of the PDF document. More...
 
const string Printed = "-dPrinted"
 Determines whether the file should be displayed or printed using the "screen" or "printer" options for annotations and images. With -dPrinted, the output will use the file's "print" options; with -dPrinted=false, the output will use the file's "screen" options. If neither of these is specified, the output will use the screen options for any output device that doesn't have an OutputFile parameter, and the printer options for devices that do have this parameter. More...
 
const string UseCropBox = "-dUseCropBox"
 Sets the page size to the CropBox rather than the MediaBox. Some files have a CropBox that is smaller than the MediaBox and may include white space, registration or cutting marks outside the CropBox. Using this option will set the page size appropriately for a viewer. More...
 
const string UseTrimBox = "-dUseTrimBox"
 Sets the page size to the TrimBox rather than the MediaBox. The trim box defines the intended dimensions of the finished page after trimming. Some files have a TrimBox that is smaller than the MediaBox and may include white space, registration or cutting marks outside the CropBox. Using this option simulates appearance of the finished printed page. More...
 
const string PdfPassword = "-sPDFPassword="
 Sets the user or owner password to be used in decoding encrypted PDF files. For files created with encryption method 4 or earlier, the password is an arbitrary string of bytes; with encryption method 5 or later, it should be text in either UTF-8 or your locale's character set (Ghostscript tries both). More...
 
const string ShowAnnotations = "-dShowAnnots="
 Don't enumerate annotations associated with the page objects through Annots attribute. Annotations are shown by default. More...
 
const string Safer = "-dSAFER"
 Disables the deletefile and renamefile operators, and the ability to open piped commands (pipecmd) at all. Only stdout and stderr can be opened for writing. Disables reading of files other than stdin, those given as a command line argument, or those contained on one of the paths given by LIBPATH and FONTPATH and specified by the system params /FontResourceDir and /GenericResourceDir. Also prevents changing the /GenericResourceDir, /FontResourceDir and either the /SystemParamsPassword or the /StartJobPassword. More...
 
const string RenderingThreads = "-dNumRenderingThreads="
 On a multi-core system where multiple threads can be dispatched to individual processors/cores, banding mode may provide higher performance since -dNumRenderingThreads=# can be used to take advantage of more than one CPU core when rendering the clist. The number of threads should generally be set to the number of available processor cores for best throughput. More...
 
const string MaxBitmap = "-dMaxBitmap="
 If the amount of memory required to hold the pixmap for the window is no more than the value of MaxBitmap, the driver will draw to a pixmap in Ghostscript's address space (called a "client-side pixmap") and will copy it to the screen from time to time; if the amount of memory required for the pixmap exceeds the value of MaxBitmap, the driver will draw to a server pixmap. Using a client-side pixmap usually provides better performance – for bitmap images, possibly much better performance – but since it may require quite a lot of RAM (e.g., about 2.2 Mb for a 24-bit 1024x768 window), the default value of MaxBitmap is 0. More...
 

Detailed Description

Ghostscript argument names

http://ghostscript.com/doc/current/Use.htm

Definition at line 7 of file GhostscriptArgument.cs.

Member Data Documentation

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.AlignToPixels = "-dAlignToPixels="

Chooses glyph alignment to integral pixel boundaries (if set to the value 1) or to subpixels (value 0). Subpixels are a smaller raster grid which is used internally for text antialiasing. The number of subpixels in a pixel usually is 2^TextAlphaBits, but this may be automatically reduced for big characters to save space in character cache.

Setting -dAlignToPixels=0 can improve rendering of poorly hinted fonts, but may impair the appearance of well-hinted fonts.

The parameter has no effect if -dTextAlphaBits=1. Default value is 0.

-dAlignToPixels=0

Definition at line 44 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.Batch = "-dBATCH"

Causes Ghostscript to exit after processing all files named on the command line, rather than going into an interactive loop reading PostScript commands. Equivalent to putting -c quit at the end of the command line.

Definition at line 98 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.EpsCrop = "-dEPSCrop"

Crop an EPS file to the bounding box. This is useful when converting an EPS file to a bitmap.

Definition at line 160 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.EpsFitPage = "-dEPSFitPage"

Resize an EPS file to fit the page. This is useful for enlarging an EPS file to fit the paper size when printing.

Definition at line 155 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.File = "-sFile="

Sets input file parameter.

-sFILE=pdf_info.ps

Definition at line 123 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.FirstPage = "-dFirstPage="

Begins interpreting on the designated page of the PDF document.

-dFirstPage=1

Definition at line 181 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.FixedMedia = "-dFIXEDMEDIA"

Causes the media size to be fixed after initialization, forcing pages of other sizes or orientations to be clipped. This may be useful when printing documents on a printer that can handle their requested paper size but whose default is some other size.

-dFIXEDMEDIA

Definition at line 72 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.GraphicsAlphaBits = "-dGraphicsAlphaBits="

Control the use of subsample antialiasing; highly recommended for producing high quality rasterizations. The subsampling box size n should be 4 for optimum output, but smaller values can be used for faster rendering. Allowed values are 1, 2 or 4.

Because of the way antialiasing blends the edges of shapes into the background when they are drawn some files that rely on joining separate filled polygons together to cover an area may not render as expected with GraphicsAlphaBits at 2 or 4. If you encounter strange lines within solid areas, try rendering that file again with -dGraphicsAlphaBits=1.

Definition at line 29 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.GridFitTT = "-dGridFitTT="

This specifies the initial value for the implementation specific user parameter GridFitTT. It controls grid fitting of True Type fonts (Sometimes referred to as "hinting", but strictly speaking the latter is a feature of Type 1 fonts). Setting this to 2 enables automatic grid fitting for True Type glyphs. The value 0 disables grid fitting. The default value is 2. For more information see the description of the user parameter GridFitTT.

The parameter has no effect if -dTextAlphaBits=1. Default value is 0.

-dGridFitTT=0

Definition at line 58 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.Height = "-dDEVICEHEIGHT="

Specifies the output height in pixels.

-dDEVICEHEIGHT=640

Definition at line 80 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.LastPage = "-dLastPage="

Stops interpreting on the designated page of the PDF document.

-dLastPage=1

Definition at line 189 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.MaxBitmap = "-dMaxBitmap="

If the amount of memory required to hold the pixmap for the window is no more than the value of MaxBitmap, the driver will draw to a pixmap in Ghostscript's address space (called a "client-side pixmap") and will copy it to the screen from time to time; if the amount of memory required for the pixmap exceeds the value of MaxBitmap, the driver will draw to a server pixmap. Using a client-side pixmap usually provides better performance – for bitmap images, possibly much better performance – but since it may require quite a lot of RAM (e.g., about 2.2 Mb for a 24-bit 1024x768 window), the default value of MaxBitmap is 0.

-dMaxBitmap=24000000

Definition at line 270 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.NoDisplay = "-dNODISPLAY"

Initializes Ghostscript with a null device (a device that discards the output image) rather than the default device or the device selected with -sDEVICE=. This is usually useful only when running PostScript code whose purpose is to compute something rather than to produce an output image.

Definition at line 130 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.NoPause = "-dNOPAUSE"

Disables the prompt and pause at the end of each page. Normally one should use this (along with -dBATCH) when producing output on a printer or to a file; it also may be desirable for applications where another program is "driving" Ghostscript."

Definition at line 105 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.OutputDevice = "-sDEVICE="

Output device.

-sDEVICE=bmp32b

Definition at line 138 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.OutputFile = "-sOutputFile="

Output file path.

File names beginning with the character % have a special meaning in PostScript and are not allowed.

Definition at line 146 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.PdfFitPage = "-dPDFFitPage"

Rather than selecting a PageSize given by the PDF MediaBox, TrimBox (see -dUseTrimBox), or CropBox (see -dUseCropBox), the PDF file will be scaled to fit the current device page size (usually the default page size). This is useful to avoid clipping information on a PDF document when sending to a printer that may have unprintable areas at the edge of the media larger than allowed for in the document. This is also useful for creating fixed size images of PDF files that may have a variety of page sizes, for example thumbnail images.

Definition at line 173 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.PdfPassword = "-sPDFPassword="

Sets the user or owner password to be used in decoding encrypted PDF files. For files created with encryption method 4 or earlier, the password is an arbitrary string of bytes; with encryption method 5 or later, it should be text in either UTF-8 or your locale's character set (Ghostscript tries both).

-sPDFPassword=mypassword

Definition at line 221 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.Printed = "-dPrinted"

Determines whether the file should be displayed or printed using the "screen" or "printer" options for annotations and images. With -dPrinted, the output will use the file's "print" options; with -dPrinted=false, the output will use the file's "screen" options. If neither of these is specified, the output will use the screen options for any output device that doesn't have an OutputFile parameter, and the printer options for devices that do have this parameter.

Definition at line 197 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.Quiet = "-dQUIET"

Suppresses routine information comments on standard output. This is currently necessary when redirecting device output to standard output.

Definition at line 111 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.RenderingThreads = "-dNumRenderingThreads="

On a multi-core system where multiple threads can be dispatched to individual processors/cores, banding mode may provide higher performance since -dNumRenderingThreads=# can be used to take advantage of more than one CPU core when rendering the clist. The number of threads should generally be set to the number of available processor cores for best throughput.

-dNumRenderingThreads=

Definition at line 257 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.Safer = "-dSAFER"

Disables the deletefile and renamefile operators, and the ability to open piped commands (pipecmd) at all. Only stdout and stderr can be opened for writing. Disables reading of files other than stdin, those given as a command line argument, or those contained on one of the paths given by LIBPATH and FONTPATH and specified by the system params /FontResourceDir and /GenericResourceDir. Also prevents changing the /GenericResourceDir, /FontResourceDir and either the /SystemParamsPassword or the /StartJobPassword.

Definition at line 242 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.ShowAnnotations = "-dShowAnnots="

Don't enumerate annotations associated with the page objects through Annots attribute. Annotations are shown by default.

-dShowAnnots=false

Definition at line 229 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.TextAlphaBits = "-dTextAlphaBits="

Control the use of subsample antialiasing; highly recommended for producing high quality rasterizations. The subsampling box size n should be 4 for optimum output, but smaller values can be used for faster rendering. Allowed values are 1, 2 or 4.

Definition at line 16 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.UseCropBox = "-dUseCropBox"

Sets the page size to the CropBox rather than the MediaBox. Some files have a CropBox that is smaller than the MediaBox and may include white space, registration or cutting marks outside the CropBox. Using this option will set the page size appropriately for a viewer.

Definition at line 204 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.UseTrimBox = "-dUseTrimBox"

Sets the page size to the TrimBox rather than the MediaBox. The trim box defines the intended dimensions of the finished page after trimming. Some files have a TrimBox that is smaller than the MediaBox and may include white space, registration or cutting marks outside the CropBox. Using this option simulates appearance of the finished printed page.

Definition at line 211 of file GhostscriptArgument.cs.

const string ImageResizer.Plugins.PdfRenderer.Ghostscript.GhostscriptArgument.Width = "-dDEVICEWIDTH="

Specifies the output width in pixels.

-dDEVICEWIDTH=800

Definition at line 88 of file GhostscriptArgument.cs.


The documentation for this class was generated from the following file: