Printing via command line
Top  Previous 


graphman.exe inputfilename /sa=prn /prn_is=ImageSize /prn_pp=PagePosition
/prn_mu=MeasurementUnits /prn_mar=martop-marbottom-marleft-marright
/prn_ip=imgwidth-imgheight /prn_ar=MaintainAspectRatio /prn_gc=GammaCorrection
/prn_pn=PageNumber /printer="PrinterName" /autorot /prn_capt="PrintCaption" /prn_size=PrinterPaperSize
/prn_copy=PrinterCopies



ImageSize

w   1 - Default. Prints the image at the size in the main display.  
w   2 - Fit to Page. Prints an image that is stretched to meet the margin of the page.  
w   3 - Specify Size. Prints an image of a specified width and/or height and maintains the aspect ratio of the image or not. If the    aspect ratio is maintained the image will be sized to meet either the width or height.  




PagePosition - Specifies where on the page to place the image. There are nine possible places.

w   0 - top-left  
w   1 - top-center  
w   2 - top-right  
w   3 - middle-left  
w   4 - center  
w   5 - middle-right  
w   6 - bottom-left  
w   7 - bottom-center  
w   8 - bottom-right  
w     

MeasurementUnits - Specifies the measurement unit for all related settings.

w   0 - millimetre  
w   1 - inches  




Margins - Specifies the Top, Bottom, Left and Right margins for the page. The marquee on the preview image designates each margin.

w   example: /prn_mar=10-10-15-20  




ImageProperties - Specifies width and height of an image. Valid only when /prn_is=3 (Specify Size)


w   example: /prn_ip=30-40  




MaintainAspectRatio - retains the same width and height ratio no matter what the size designation.

w   0 - disable  
w   1 - enable  




GammaCorrection - Gamma correction value, use 1 to disable gamma correction.The Gamma setting changes the light value of the images, higher values lighten the image, while lower values darken it.

PageNumber - Establishes page number for print in the multipage document. example: /prn_pn=4

PrinterName - It is used for a choice of the printer. For example: /printer="HP LaserJet 4p"

PrinterCopies -
Specifies the number of copies to print.

autorot
- automatical page orientation

PrintCaption
- When you print an image, you can add text above or below the image.
      The text can include information you type or metadata tags associated with the image file.
      Tags: <Filename>, <FilenameExt>, <FileDate>, <FileTime>

      for example: /prn_capt="1-<FilenameExt> 2-<FileDate> 3-<FileTime>"
      result: 1-myfile.bmp 2-10.05.2005 3-14:02:34

PrinterPaperSize   
Selects the size of the paper to print on.
1 - DMPAPER_LETTER      Letter, 8 1/2- by 11-inches
2 - DMPAPER_LEGAL      Legal, 8 1/2- by 14-inches
3 - DMPAPER_A4      A4 Sheet, 210- by 297-millimeters
4 - DMPAPER_CSHEET   C Sheet, 17- by 22-inches
5 - DMPAPER_DSHEET   D Sheet, 22- by 34-inches
6 - DMPAPER_ESHEET   E Sheet, 34- by 44-inches
7 - DMPAPER_LETTERSMALL   Letter Small, 8 1/2- by 11-inches
8 - DMPAPER_TABLOID   Tabloid, 11- by 17-inches
9 - DMPAPER_LEDGER   Ledger, 17- by 11-inches
10 - DMPAPER_STATEMENT   Statement, 5 1/2- by 8 1/2-inches
11 - DMPAPER_EXECUTIVE   Executive, 7 1/4- by 10 1/2-inches
12 - DMPAPER_A3      A3 sheet, 297- by 420-millimeters
13 - DMPAPER_A4SMALL   A4 small sheet, 210- by 297-millimeters
14 - DMPAPER_A5      A5 sheet, 148- by 210-millimeters
15 - DMPAPER_B4      B4 sheet, 250- by 354-millimeters
16 - DMPAPER_B5      B5 sheet, 182- by 257-millimeter paper
17 - DMPAPER_FOLIO      Folio, 8 1/2- by 13-inch paper
18 - DMPAPER_QUARTO   Quarto, 215- by 275-millimeter paper
19 - DMPAPER_10X14      10- by 14-inch sheet
20 - DMPAPER_11X17      11- by 17-inch sheet
21 - DMPAPER_NOTE      Note, 8 1/2- by 11-inches
22 - DMPAPER_ENV_9      #9 Envelope, 3 7/8- by 8 7/8-inches
23 - DMPAPER_ENV_10   #10 Envelope, 4 1/8- by 9 1/2-inches
24 - DMPAPER_ENV_11   #11 Envelope, 4 1/2- by 10 3/8-inches
25 - DMPAPER_ENV_12   #12 Envelope, 4 3/4- by 11-inches
26 - DMPAPER_ENV_14   #14 Envelope, 5- by 11 1/2-inches
27 - DMPAPER_ENV_DL   DL Envelope, 110- by 220-millimeters
28 - DMPAPER_ENV_C5   C5 Envelope, 162- by 229-millimeters
29 - DMPAPER_ENV_C3   C3 Envelope, 324- by 458-millimeters
30 - DMPAPER_ENV_C4   C4 Envelope, 229- by 324-millimeters
31 - DMPAPER_ENV_C6   C6 Envelope, 114- by 162-millimeters
32 - DMPAPER_ENV_C65   C65 Envelope, 114- by 229-millimeters
33 - DMPAPER_ENV_B4   B4 Envelope, 250- by 353-millimeters
34 - DMPAPER_ENV_B5   B5 Envelope, 176- by 250-millimeters
35 - DMPAPER_ENV_B6   B6 Envelope, 176- by 125-millimeters
36 - DMPAPER_ENV_ITALY   Italy Envelope, 110- by 230-millimeters
37 - DMPAPER_ENV_MONARCH   Monarch Envelope, 3 7/8- by 7 1/2-inches
38 - DMPAPER_ENV_PERSONAL   6 3/4 Envelope, 3 5/8- by 6 1/2-inches
39 - DMPAPER_FANFOLD_US      US Std Fanfold, 14 7/8- by 11-inches
40 - DMPAPER_FANFOLD_STD_GERMAN   German Std Fanfold, 8 1/2- by 12-inches
41 - DMPAPER_FANFOLD_LGL_GERMAN   German Legal Fanfold, 8 1/2- by 13-inches






Example:


graphman.exe test.dxf /sa=prn /prn_is=3 /prn_pp=4 /prn_mu=1 /prn_mar=1-1-2-2 /prn_ip=10-15 /prn_ar=1 /prn_gc=2 /prn_size=3 /prn_copy=3

Copyright © 1997- 2008
The CHM file was converted to HTML by chm2web software.