Pstopnm User Manual(0) Pstopnm User Manual(0) (NAME) pstopnm - PostScript PNM (SYNOPSIS) pstopnm [-stdout] [-forceplain] [-help] [-dpi=dpi] [-xsize=pixels] [-ysize=pixels] [-xborder=frac] [-yborder=frac] [-landscape] [-portrait] [-nocrop] [-pbm |-pgm |-ppm] [-llx=s] [-lly=s] [-urx=s] [-ury=s] [-verbose] [-xmax=pixels] [-ymax=pixels] [-textalphabits={1,2,4}] psfile[.ps] (OPTION USAGE) . . . (DESCRIPTION) Netpbm(1) . pstopnm PostScript PDF PBM PGM PPM . GhostScript PostScript PNM . GhostScript PNM pstopnm . gs --help . <> pbm pbmraw pgm pgmraw pnm pnmraw ppm ppmraw . pstopnm Netpbm Postscript . pstopnm Postscript -- -- . pstopnm | pnmtops (idempotent) ( ). . pstopnm GHOSTSCRIPT Ghostscript . GHOSTSCRIPT pstopnm PATH gs . Ghostscript /usr/bin/gs . pstopnm Netpbm Netpbm . psfile[.ps] . .ps pstopnm ps . - . -stdout pstopnm . pstopnm Postscript . : psfile.ps psfile001.ppm psfile002.ppm . .ppm .pgm .pbm . .ps . psfile.old psfile.old001.ppm . Netpbm . Netpbm . Encapsulated Postscript pstopnm . pstopnm Encapsulated Postscript Encapsulated Postscript . pstopnm . Postscript EPSF -- pstopnm . -- EPSF EPSF -- pnmtops -setpage . . (Dimensions) <#dimensions> . Postscript Ghostscript pstopnm . ps2ps Postscript . pstops . . . pstopnm . << >> (subject image) . pstopnm << >> (bordered subject image) . pstopnm . Postscript : x y - -. BoundingBox DSC ( Postscript) PostScript : -llx -lly -urx -ury. -xborder -yborder . pstopnm BoundingBox pstopnm . (Standard Input) pstopnm BoundingBox ( Ghostscript) . . Postscript . . Postscript . PNM . PNM . pstopnm Postscript . PNM . pstopnm << >> (output device resolution) . (DPI) . -dpi pstopnm . -dpi=300 PNM . . -xsize -ysize . -xsize=1200 -ysize=1800 / . -xsize -ysize . -ysize / / . -xsize -ysize pstopnm . <> <> -xsize -ysize . pstopnm (landscape) <> PNM . pstopnm : -nocrop pstopnm -xmax -ymax . . -nocrop . . pstopnm -xmax -ymax . ( ) . ( ) pstopnm . Ghostscript (Ghostscript Limitations) Ghostscript 8.71 pgmraw Ghostscript Postscript pstopnm . Postscript pstopnm ppmraw Ghostscript PPM . (Usage Notes) Postscript Postcript File Conversions (1) Andrew T. Young . (Reversible Conversion) pnmtops | pstopnm . $ pnmtops -nocenter -equalpixels -dpi 72 -noturn testimg.ppm > testimg.ps $ pstopnm -xborder=0 -yborder=0 -xsize=XSIZE -ysize=YSIZE \ -portrait -stdout -quiet testimg.ps >testimg2.ppm XSIZE YSIZE testimg.ps ( grep awk echo -- ). $ grep "BoundingBox" testimg.ps %%BoundingBox: 0 0 227 149 $ awk '/%%BoundingBox/ {print $4,$5}' testimg.ps 227 149 $ xysize=$(awk '/%%BoundingBox/ {print "-xsize="$4,"-ysize="$5}' testimg.ps) $ echo $xysize -xsize=227 -ysize=149 $ pstopnm -xborder=0 -yborder=0 $xysize -portrait ... testimg.ps Ghostscript . PDF Postscript pstopnm PDF Netpbm pstopnm BoundingBox DSC ( PDF ) . PDF . Postscript pdf2ps Ghostscript . PDF Document/Graphics Software . libnetpbm ( -quiet ) pstopnm : -forceplain ( plain) . ( binary) . pbm(1) . -plain . -llx=bx bx x ( ) Postscript . (Dimensions) <#dimensions> . -lly=by by y ( ) Postscript . (Dimensions) <#dimensions> . -landscape (landscape) . -portrait -landscape pstopnm . (Landscape) . . -portrait (portrait) . -landscape . -nocrop pstopnm . pstopnm -xmax -ymax . (Dimensions) <#dimensions> . -pbm -pgm -ppm . PPM . -stdout ( ) (Standard Output) . pnmsplit . -urx=tx tx x ( ) Postscript . (Dimensions) <#dimensions> . -ury=ty ty y ( ) Postscript . (Dimensions) <#dimensions> . -verbose stdout . -xborder=frac frac . 0.1 . (Dimensions) <#dimensions> . -xmax=xmax xmax . 612 . (Dimensions) <#dimensions> . -xsize=xsize xsize . (Dimensions) <#dimensions> . -yborder=frac frac . 0.1 . (Dimensions) <#dimensions> . -ymax=ymax ymax . 792 . (Dimensions) <#dimensions> . -ysize=ysize ysize . (Dimensions) <#dimensions> . -dpi=dpi (dpi) Postscript pstopnm . PNM pstopnm . (Dimensions) <#dimensions> . Netpbm 10.21 ( ) . -textalphabits={1,2,4} (subsample antialiasing) . (Antialiasing) . . 4 1 . pnmtops (CPU) . pstopnm TextAlphaBits Ghostscript . 4 . Netpbm 10.53 ( ) . pstopnm . PostScript (current transformation matrix) . . : pstopnm -xborder 0 -yborder 0 -portrait -nocrop file.ps letter . (SEE ALSO) gs, pnmtops(1), psidtopgm(1), pbmtolps(1), pbmtoepsi(1), pnmsplit(1), pstofits (COPYRIGHT) (c) 1992 Smithsonian Astrophysical Observatory PostScript Adobe Systems Incorporated . (AUTHORS) Alberto Accomazzi, WIPL, Center for Astrophysics. (DOCUMENT SOURCE) "makeman" Netpbm HTML . : http://netpbm.sourceforge.net/doc/pstopnm.html netpbm documentation 21 February 2024 Pstopnm User Manual(0)