Print Tiff file and specify paper size by command line directly

  When you need to print tiff files and specify paper size through command line operation, maybe you can have a free trial of software VeryDOC Image to XPS Converter, which is able to specify any other printer name to instead of "Microsoft XPS Document Writer" printer; By this function, you can print tiff file easily and swiftly. In the following part, I will show you how to use this software.

Step 1. Download Image to XPS Converter

  • This software is command line version software, so when downloading finishes, it is an zip file. Please extract this zip file to some folder then you can check the elements in it.
  • Please note this is Windows application and it can not work under Mac and Linux system now.

Step 2. Print Tiff by Command Line

  • When you use this software, please refer to the usage and examples.
    Usage:img2xps.exe [options] [Options] <Image Files>
  • When you print tiff file, please refer to the following command line template.
  • img2xps.exe -printer "Microsoft XPS Document Writer" -paper "612x792pt" C:\input.tif
    img2xps.exe -printer "XPS Printer" -paper "612x792pt" C:\input.tif
    When you input the command line, please use parameter –print to specify printer that you will use in the conversion. And during the printing, you can specify paper size by parameter –paper.
    Parameter related:
    -printer <string> : this parameter can be used to specify printer name to xps printing.
    -paper <string>   : when you need to set paper size to xps format, please add this parameter.
        auto   : retrieve paper size from image file
        number : standard paper size
        others : user defined paper size
    If you do not specify paper size, this software will retrieve paper size from image file. When you need to specify paper size, please use format of "612x792pt" by specifying width and height.  And during the printing job, you can also specify the printing output folder, then you can do the printing job together with conversion.

  • When you choose the paper size, please refer to the formats from the following website.Paper size can be selected either standard papers or user defined papers.  Look at following page for the standard papers: http://www.verypdf.com/artprint/document-converter/index.htm
    I will list some of them here for your reference.
  • #define DMPAPER_LEGAL                5  /* Legal 8 1/2 x 14 in                */
    #define DMPAPER_STATEMENT            6  /* Statement 5 1/2 x 8 1/2 in         */
    #define DMPAPER_EXECUTIVE            7  /* Executive 7 1/4 x 10 1/2 in        */
    #define DMPAPER_A3                   8  /* A3 297 x 420 mm                    */
    #define DMPAPER_A4                   9  /* A4 210 x 297 mm                    */
    #define DMPAPER_A4SMALL             10  /* A4 Small 210 x 297 mm              */
    #define DMPAPER_A5                  11  /* A5 148 x 210 mm                    */
    #define DMPAPER_B4                  12  /* B4 (JIS) 250 x 354                 */
    #define DMPAPER_B5                  13  /* B5 (JIS) 182 x 257 mm              */
    #define DMPAPER_FOLIO               14  /* Folio 8 1/2 x 13 in                */
    #define DMPAPER_QUARTO              15  /* Quarto 215 x 275 mm                */
    #define DMPAPER_10X14               16  /* 10x14 in                           */
    #define DMPAPER_11X17               17  /* 11x17 in                           */
    #define DMPAPER_NOTE                18  /* Note 8 1/2 x 11 in                 */
    #define DMPAPER_ENV_9               19  /* Envelope #9 3 7/8 x 8 7/8          */
    #define DMPAPER_ENV_10              20  /* Envelope #10 4 1/8 x 9 1/2         */
    #define DMPAPER_ENV_11              21  /* Envelope #11 4 1/2 x 10 3/8        */
    #define DMPAPER_ENV_12              22  /* Envelope #12 4 \276 x 11           */
    #define DMPAPER_ENV_14              23  /* Envelope #14 5 x 11 1/2            */
    #define DMPAPER_CSHEET              24  /* C size sheet                       */

    If you need to check more, please visit the webpage I stated above. By this software, you can print tiff file and specify paper size by command line directly. During the using, if you have any question, please contact us as soon as possible.

 

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: -1 (from 1 vote)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!