Command Parameters previous  top  next 
 
pstoimage   <-i <string> [...]>
[-o <string>]
[-x <int>]
[-y <int>]
[-q <int>]
[-c <int>]
[-d <int>]
[-t <string>]
[-r <string>]
[-m]
[-h]
Notes: <> -- required    [] -- optional
 
  (1).Input and Output settings
-i <string>  Input source ps/eps files or directory which contains ps/eps files you want to convert. This parameter can appear several times, such as:
e.g.1) pstoimage -i "c:\my1.ps" -i "c:\my2.eps" -i "c:\my_ps" -o "d:\my_image"
    Extract ps/eps files which are "c:\my1.ps","c:\my2.eps" and all ps/eps files placed in "c:\my_ps" to "d:\my_image".
-o <string>  Set destination directory to output image files, default is in the same directory as source files.
  (2).Image/Page settings
 -x <int>  Set the horizontal resolution of the image, the resolution from 72 to 1200, default is 100.
 -y <int>  Set the vertical resolution of the image, the resolution from 72 to 1200, default is 100.
-q <int>  Set the JPEG compression quality(1-100), default is 75.
-d <int>  Set the color depth of an image.default is 24.
Value

Description

1 black/white image.
4 16 colors image.
7 256 grayscale image.
8 256 colors image.
24 true color image.
-c <int>  Set the tiff compression mode. The program supports the following mode.default is 5 (Lzw compression).
Value

Description

1 No compression(1-bit, 4-bits, 8-bits grayscal, 8-bits, 24-bits)
2 Rle compression(1-bit)
3 CCITT Group 3 compression(1-bit)
4 CCITT Group 4 compression(1-bit)
5 Lzw compression(1-bit, 4-bits, 8-bits grayscal, 8-bits, 24-bits)
6 Jpeg compression(8-bits grayscale, 24-bits)
7 Packbits compression(4-bits, 8-bits grayscal, 8-bits, 24-bits)
e.g.1) pstoimage -i "c:\my1.ps" -o "d:\my_image" -t "tif" -d 8 -c 7
    Extract all layouts of "c:\my1.ps" to "d:\my_image", it is to output 256 colors tiff files which compression mode is Packbits.
-t <string>  File type's definitions, supports the following image type, default is tiff format.
Value

Description

tif The file is tiff format
jpg The file is jpeg format
bmp The file is bmp format
gif The file is gif format
pcx The file is pcx format
png The file is png format
emf The file is emf format
wmf The file is wmf format
e.g.1) pstoimage -i "c:\my_ps" -o "d:\my_image" -t "bmp" -d 7
    Extract all ps/eps files placed in "c:\my_ps" to "d:\my_image", it is to output 256 grayscale image files.
-m  If you set, it convert all layouts of one ps\eps file to one multi-page tiff. If not set default is single-page tiff.
e.g.1) pstoimage -i "c:\my_ps" -o "d:\my_image" -t "tif" -m
    Extract all ps/eps files which placed in "c:\my_ps" to "d:\my_image", it is to output multi-page tiff file.
(4).Other settings
-r<string>  Register
e.g) pstoimage -r "AAAA-AAAA-AAAA-AAAA-AAAA"
-h  Help
(5).Example
e.g.1) pstoimage -i "c:\my1.ps" -i "c:\my_ps" -o "d:\my_image" -t "bmp" -d 8
    Extract ps/eps files which are "c:\my1.ps" and all ps/eps files placed in "c:\my_ps" to "d:\my_image".It is to output 256 colors bmp format files.

e.g.2) pstoimage -i "c:\my1.ps" -o "d:\my_image" -x 300 -y 300 -t "jpg" -q 100
    Extract ps/eps files which are "c:\my1.ps" to "d:\my_image".It is to output jpg format file which horizontal resolution is 300, vertical resolution is 300, JPEG compression quality is 100.

e.g3) pstoimage -i "c:\my1.ps" -o "d:\my_image" -m -c 6 -q 100
    Extract ps/eps files which are "c:\my1.ps" to "d:\my_image".It is to output multi-page tiff format file which compression mode is JPEG, quality 100.


http://www.oakdoc.com  
Copyright 2008 by OakDoc Technology, Inc. All rights reserved.