From b7a6cf276affa1a00a21a3274763ca325b5c02d0 Mon Sep 17 00:00:00 2001 From: Andrey Kiselev Date: Sun, 2 Jun 2002 11:41:23 +0000 Subject: [PATCH] *** empty log message *** --- tools/tiff2ps.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/tiff2ps.c b/tools/tiff2ps.c index acd973ef..0b337df4 100644 --- a/tools/tiff2ps.c +++ b/tools/tiff2ps.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/tools/tiff2ps.c,v 1.6 2002-05-10 10:45:43 dron Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/tools/tiff2ps.c,v 1.7 2002-06-02 11:41:23 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -365,7 +365,6 @@ PhotoshopBanner(FILE* fd, uint32 w, uint32 h, int bs, int nc, char* startline) static void setupPageState(TIFF* tif, uint32* pw, uint32* ph, float* pprw, float* pprh) { -// uint16 res_unit; float xres, yres; TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, pw); @@ -383,6 +382,8 @@ setupPageState(TIFF* tif, uint32* pw, uint32* ph, float* pprw, float* pprh) case RESUNIT_CENTIMETER: xres *= 2.54, yres *= 2.54; break; + case RESUNIT_INCH: + break; case RESUNIT_NONE: default: xres *= PS_UNIT_SIZE, yres *= PS_UNIT_SIZE; @@ -1771,6 +1772,8 @@ char* stuff[] = { " -1 generate PostScript Level I (default)", " -2 generate PostScript Level II", " -8 disable use of ASCII85 encoding with PostScript Level II", +" -n override resolution units as inches", +" -c override resolution units as centimeters", " -d # convert directory number #", " -D enable duplex printing (two pages per sheet of paper)", " -e generate Encapsulated PostScript (EPS)",