For other information, see the Ghostscript overview. You may also be interested in how to build Ghostscript and install it , as well as the description of the driver interface. Documentation for some older, superceded devices has been moved to another document. In general such devices are deprecated and will be removed in future versions of Ghostscript. In general all older printer drivers can be replaced by the ijs interface and one of the available 3rd party raster driver collections.

Author:Voodoolmaran Mikam
Language:English (Spanish)
Genre:Personal Growth
Published (Last):20 February 2004
PDF File Size:20.10 Mb
ePub File Size:2.23 Mb
Price:Free* [*Free Regsitration Required]

For other information, see the Ghostscript overview. You may also be interested in how to build Ghostscript and install it , as well as the description of the driver interface. Documentation for some older, superceded devices has been moved to another document. In general such devices are deprecated and will be removed in future versions of Ghostscript. In general all older printer drivers can be replaced by the ijs interface and one of the available 3rd party raster driver collections.

We recommend moving to the ijs device for all such printing. Several different important kinds of measures appear throughout this document: inches, centimeters and millimeters, points, and bits per pixel. Ghostscript supports output to a variety of image file formats and is widely used for rasterizing postscript and pdf files. A collection of such formats 'output devices' in Ghostscript terminology are described in this section.

Here are some commonly useful driver options that apply to all raster drivers. Options specific to particular file formats are described in their respective sections below. This is a general option telling Ghostscript what to name the output.

It can either be a single filename ' tiger. This option sets the resolution of the output file in dots per inch. The default value if you don't specify this options is usually 72 dpi. These options control the use of subsample antialiasing. Their use is highly recommended for producing high quality rasterizations of the input files. The size of the subsampling box n should be 4 for optimum output, but smaller values can be used for faster rendering.

Antialiasing is enabled separately for text and graphics content. Because this feature relies upon rendering the input it is incompatible, and will generate an error on attempted use, with any of the vector output devices. These suppress interactive prompts and enable some security checks on the file to be run. Please see the Use documentation for a complete description. PNG pronounced 'ping' stands for Portable Network Graphics, and is the recommended format for high-quality images. It supports full quality color and transparency, offers excellent lossless compression of the image data, and is widely supported.

Please see the PNG website for a complete description of the format. Ghostscript provides a variety of devices for PNG output varying by bit depth. For normal use we recommend png16m for bit RGB color, or pnggray for grayscale. The png , png16 and pngmono devices respectively provide 8-bit color, 4-bit color and black-and-white for special needs.

The pngmonod device is also a black-and-white device, but the output is formed from an internal 8 bit grayscale rendering which is then error diffused and converted down to 1bpp. The pngalpha device is bit RGBA color with transparency indicating pixel coverage.

The background is transparent unless it has been explicitly filled. PDF 1. Text and graphics anti-aliasing are enabled by default. The pngmonod , png16m , pnggray and pngalpha devices all respond to the following:. Ghostscript includes output drivers that can produce jpeg files from postscript or pdf images. These are the jpeg and jpeggray devices. Please note that JPEG is a compression method specifically intended for continuous-tone images such as photographs, not for graphics, and it is therefore quite unsuitable for the vast majority of page images produced with PostScript.

For anything other than pages containing simple images the lossy compression of the jpeg format will result in poor quality output regardless of the input. The PNM portable network map family of formats are very simple uncompressed image formats commonly used on unix-like systems. They are particularly useful for testing or as input to an external conversion utility. A wide variety of data formats and depths is supported. Devices include pbm pbmraw pgm pgmraw pgnm pgnmraw pnm pnmraw ppm ppmraw pkm pkmraw pksm pksmraw.

TIFF is a loose collection of formats, now largely superceded by PNG except in applications where backward compatibility or special compression is required. Writing to stdout, pipes or other similar stream is not supported. Attempting to do so will generate an error. There are two unrelated sets of TIFF drivers. There are five color TIFF drivers that produce uncompressed output:. The equivalent CMYK color for each spot color is determined using the alternate tint transform function specified in the Separation and DeviceN color spaces.

Since this file is created based upon having color planes for each colorant, the file will correctly represent the appearance of overprinting with spot colors. File names for the separations for the CMYK colorants are created by appending '. File names for the spot color separation files are created by appending the Spot color name in ' ' and '. If desired the file names for the spot color separation files can be created by appending '.

This change is a compile time edit. The tiffsep device will automatically recognize spot colors. In this case their order is determined by when they are found in the input file.

The names of spot colors may be specified via the SeparationColorNames device parameters. Internally each spot color is assigned a spot color number.

These numbers start with 0 for the first spot color. The spot color numbers are assigned in the same order as the names are printed to stderr see below. This order also matches the ordering in the SeparationColorNames list, if this parameter is specified. The spot color numbers are not affected by the SeparationOrder parameter. If only a subset of the colorants for a file is desired, then the separations to be output can be selected via the SeparationOrder device parameter.

The tiffsep device also prints the names of any spot colors detected within a document to stderr. This provides a simple mechanism for users and external applications to be informed about the names of spot colors within a document.

Generally Ghostscript will support a maximum of 64 process and spot colors. That is there can be up to 64 colorants accurately handled with overprint on a single page. If more than 64 colorants are encountered, those beyond 64 will be mapped to CMYK using the alternate tint transform. When rendering a PDF document, Ghostscript can deteremine prior to rendering how many colorants occur on a particular page.

With Postscript, this is not possible in general. For example, 60 or less for a CMYK device such as tiffsep. If you specify more than is needed, the document will render more slowly. The ideal case is to use the same number as the maximum number of spot colorants that occur on a single page of the document. If more spot colorants are encountered than is specified by -dMaxSpots, then a warning will be printed indicating that some spot colorants will be mapped to CMYK using the alternate tint transform.

In 1bpp mode, the device renders each component internally in 8 bits, but then converts down to 1bpp with error diffusion before output as described below in the tiffscaled device. No composite file is produced in 1bpp mode, only individual separations. The tiffscaled and tiffscaled4 devices can optionally use Even Toned Screening, rather than simple Floyd Steinberg error diffusion.

This patented technique gives better quality at the expense of some speed. While the code used has many quality tuning options, none of these are currently exposed. Any device author interested in trying these options should contact Artifex for more information. The file specified via the OutputFile command line parameter will not be created it is opened, but deleted prior to finishing each page. If the file name specified via the OutputFile parameter ends with the suffix '. See the AdjustWidth option documentation below for important information about these devices.

All TIFF drivers support creation of files that are comprised of more than a single strip. Multi-strip files reduce the memory requirement on the reader, since readers need only store and process one strip at a time.

The MaxStripSize parameter controls the strip size:. The TIFF 6. If the value of the MaxStripSize parameter is smaller than a single image row, then no error will be generated, and the TIFF file will be generated correctly using one row per strip.

Note that smaller strip sizes increase the size of the file by increasing the size of the StripOffsets and StripByteCounts tables, and by reducing the effectiveness of the compression which must start over for each strip. Since v. According to the TIFF 6. Unfortunately, due the unpredictable size of compressed output, we cannot automate the selection of BigTIFF, using it only when the output file grows large enough to warrant it.

For the tiffsep device, it changes the compression scheme of the separation files and composite cmyk file which is lzw by default. It defaults to g4 for the tiffsep1 device. The tiffscaled , tiffscaled4 , tiffscaled8 , tiffscaled24 and tiffscaled32 TIFF drivers also provide the following two parameters:. This is useful when the file uses overprint to separately paint to some subset of the C, M, Y, and K colorants, but the final CMYK is to be color corrected for printing or display.

The tiffsep device along with the tiffscaled32 and psdcmyk devices can perform rudimentary automatic bitmap 'trapping' on the final rendered bitmap. This code is disabled by default; see the note below as to why. Trapping is a process whereby the output is adjusted to minimise the visual impact of offsets between each printed plane. Typically this involves slightly extending abutting regions that are rendered in different inks.


[gs-bugs] [Bug 698340] - Ghostscript - FontBBox incorrect for Type3 Font

As a developer, it bothers me when someone sends me a large pdf file compared to the number of pages. Recently, I recieved a 12MB scanned document for just one letter-sized page What we are interested in, is the gs command line tool, which provides many options for manipulating PDF, but we are interested in compressign those large PDF's into small yet legible documents. I also added a function to my. I just wanted to notify you about a little error in the description of the input and output files:.


Extracting a range of pages from a PDF, using GhostScript

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. But I remember also having seen PDFs where such binary parts by and large were absent, and one could open them in a text editor to study their structure. Preferably "free as in beer" or even "free as in liberty". Ghostscript has a small utility program written in PostScript in its source code repository.


[gs-devel] Extracting PDF metadata and exploding pages



GSview Help


Related Articles