Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
pstopnm(1)
Edit
PageHistory
Diff
Info
LikePages
pstopnm !!!pstopnm NAME SYNOPSIS DESCRIPTION OPTIONS BUGS SEE ALSO COPYRIGHT AUTHOR ---- !!NAME pstopnm - convert a !PostScript file into a portable anymap !!SYNOPSIS __pstopnm__ [[__-stdout__] [[__-forceplain__] [[__-help__] [[__-llx__ ''s''] [[__-lly__ ''s''] [[__-landscape__] [[__-portrait__] [[__-nocrop__] [[__-pbm__ |__-pgm__ |__-ppm__] [[__-urx__ ''s''] [[__-ury__ ''s''] [[__-verbose__] [[__-xborder__ ''n''] [[__-xmax__ ''n''] [[__-xsize__ ''f''] [[__-yborder__ ''f''] [[__-ymax__ ''n''] [[__-ysize__ ''n''] ''psfile''[[__.ps__] !!DESCRIPTION Reads a !PostScript file as input. Produces PBM, PGM, or PPM files as output. This program simply uses __!GhostScript__ to render a !PostScript file with its PNM device drivers. If you don't have __!GhostScript__ installed (invoked by a __gs__ command), or the version you have installed was not built with the relevant PNM device drivers, __pstopnm__ will fail. You can see if you have the proper environment by issuing the command __gs --help__ . If it responds and lists under __pbm__, __pbmraw__, __pgm__, __pgmraw__, __pnm__, __pnmraw__, __ppm__, or __ppmraw__, you're in business. __pstopnm__ does not use the Netpbm libraries to generate the output files, so may not be entirely consistent with most Netpbm programs. ''psfile''[[__.ps__] is the name of the input file. __.pstopnm__ will add the __ps__ to the end of the name you specify if no file exists by the exact name you specify, but one with added does. Use __-__ to indicate Standard Input. If you use the __-stdout__ option, __pstopnm__ outputs images of all the pages as a multi-image file to Standard Output. Otherwise, __pstopnm__ creates one file for each page in the Postscript document. The files are named as follows: If the input file is named __psfile.ps__, the name of the files will be __psfile001.ppm__, __psfile002.ppm__, etc. The filetype suffix is __.ppm__, __.pgm__, or __.pbm__, depending on which kind of output you choose with your invocation options. If the input file name does not end in __.ps__, the whole file name is used in the output file name. For example, if the input file is named __psfile.old__, the output file name is __psfile.old001.ppm__, etc. Note that the output file selection is inconsistent with most Netpbm programs, because it does not default to Standard Output. This is for historical reasons, based on the fact that the Netpbm formats did not always provide for a sequence of images in a single file. Each output file contains the image of a rectangular part of the page to which it pertains. The selected area will always be centered in the output file, and may have borders around it. The image area to be extracted from the !PostScript file and rendered into a portable anymap is defined by four numbers, the lower left corner and the upper right corner x and y coordinates. These coordinates are usually specified by the !BoundingBox comment in the !PostScript file header, but they can be overridden by the user by specifying one or more of the following options: __-llx__, __-lly__, __-urx__, and __-ury__. The presence and thickness of a border to be left around the image area is controlled by the use of the options __-xborder__ and __-yborder__. If __pstopnm__ does not find !BoundingBox parameters in the input, and you don't specify image area coordinates on the command line, __pstopnm__ uses default values. If your input is from Standard Input, __pstopnm__ does not use the !BoundingBox parameters (due to the technical difficulty of extracting that information and still feeding the file to Ghostscript), so you either have to specify the image area coordinates or take the default. Unless you specify both output file width and height, via the __-xsize__ and __-ysize__ options, __pstopnm__ maps the document into the output image by preserving its aspect ratio. !!OPTIONS __-forceplain__ forces the output file to be in plain (text) format. Otherwise, it is in raw (binary) format. See pbm(1), etc. __-llx__ ''bx'' selects ''bx'' as the lower left corner x coordinate (in inches). __-lly__ ''by'' selects ''by'' as the lower left corner y coordinate (in inches). __-landscape__ renders the image in landscape mode. __-portrait__ renders the image in portrait mode. __-nocrop__ does not crop the output image dimensions to match the !PostScript image area dimensions. __-pbm -pgm -ppm__ selects the format of the output file. By default, all files are rendered as portable pixmaps (ppm format). __-stdout__ causes output to go to Standard Output instead of to regular files, one per page (see description of output files above). Use __pnmsplit__ to extract individual pages from Standard Output. __-urx__ ''tx'' selects ''tx'' as the upper right corner x coordinate (in inches). __-ury__ ''ty'' selects ''ty'' as the upper right corner y coordinate (in inches). __-verbose__ prints processing information to stdout. __-xborder__ ''frac'' specifies that the border width along the Y axis should be ''frac'' times the document width as specified by the bounding box comment in the !PostScript file header. The default value is 0.1. __-xmax__ ''xs'' specifies that the maximum output image width should have a size less or equal to ''xs'' pixels (default: 612). __-xsize__ ''xsize'' specifies that the output image width must be exactly ''xs'' pixels. __-yborder__ ''frac'' specifies that the border width along the X axis should be ''frac'' times the document width as specified by the bounding box comment in the !PostScript file header. The default value is 0.1. __-ymax__ ''ys'' specifies that the maximum output image height should have a size less or equal to ''ys'' pixels (default: 792). __-ysize__ ''ys'' specifies that the output image height must be exactly ''ys'' pixels. !!BUGS The program will produce incorrect results with !PostScript files that initialize the current transformation matrix. In these cases, page translation and rotation will not have any effect. To render these files, probably the best bet is to use the following options: pstopnm -xborder 0 -yborder 0 -portrait -nocrop file.ps Additional options may be needed if the document is supposed to be rendered on a medium different from letter-size paper. !!SEE ALSO gs(1), pstofits(1), pnmtops(1), psidtopgm(1), pbmtolps(1), pbmtoepsi(1), pnmsplit(1) !!COPYRIGHT Copyright (c) 1992 Smithsonian Astrophysical Observatory !PostScript is a Trademark of Adobe Systems Incorporated. !!AUTHOR Alberto Accomazzi, WIPL, Center for Astrophysics. ----
8 pages link to
pstopnm(1)
:
pbmtopsg3(1)
pic(1)
pnmtops(1)
pbmfilters(1)
pbmtoepsi(1)
pbmtoppa(1)
gpic(1)
Man1p
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.