pdf2img conversion to grayscale faxable TIFF

Hi, we are using your pdf2img command line utility and we have a problem when we specify grayscale when converting from pdf to tif. When we fax the tif it does not come out (we just get a black bar on top). I noticed when using tiffinfo against the file that the resolution is not correct.

This is our syntax to convert:

C:\>c:\pdf2image_cmd\pdf2img.exe -multipage -gray -compress 3 -xres 204 -yres 196 -w 1728 -h 2156 c:\temp\img-X24120122-0001.pdf c:\temp\graytest.tif

This is the information about the tif:

Subfile Type: multi-page document (2 = 0x2)
Image Width: 1728 Image Length: 2156
Resolution: 96, 96 pixels/inch                                                   ====WRONG!
Bits/Sample: 1
Compression Scheme: CCITT Group 4
Photometric Interpretation: min-is-white
FillOrder: msb-to-lsb
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 2156
Planar Configuration: single image plane
Page Number: 0-1
PageName: Page 1

----
The resolution should be 204x196 as specified in our command. Please tell us if this can be fixed. Thank you.
==============================
I also noticed that the compression scheme is also wrong-

Compression Scheme: CCITT Group 4

When it should be :  Compression Scheme: CCITT Group 3

Please let me know if this can be fixed. Thank you.
==============================
PDF to Image Converter does support following comparession formats,

-compress <int>    : set compression to TIFF format:
-compress 1     : NONE compression
-compress 2     : CCITT modified Huffman RLE
-compress 3     : CCITT Group 3 fax encoding (1d)
-compress 4     : CCITT Group 4 fax encoding
-compress 5     : LZW compression
-compress 6     : OJPEG compression
-compress 7     : JPEG DCT compression
-compress 32773 : PACKBITS compression
-compress 32809 : THUNDERSCAN compression
   -compress 88880 : 204x98  G4 ClassF TIFF
-compress 88881 : 204x196 G4 ClassF TIFF
-compress 88882 : 204x98  G3 ClassF TIFF
-compress 88883 : 204x196 G3 ClassF TIFF

-compress 88884 : CCITT Group 3 fax encoding (2d)

You can use "-compress 88882" to convert PDF file to CCITT G3 format,

pdf2img.exe -compress 88882 -mono C:\in.pdf C:\out.tif
pdf2img.exe -compress 88882 -mono -multipage C:\in.pdf C:\out.tif

VeryDOC
=============================
No, you are not understanding. I want to use grayscale and NOT mono since the fax files are too large and take a long time to go through. When we use grayscale the file produced is much smaller but since the tiff settings are wrong, the fax does not go through -

My syntax is-

pdf2img.exe -multipage -gray -compress 3 -xres 204 -yres 196 -w 1728 -h 2156 c:\temp\img-X24120122-0001.pdf c:\temp\graytest.tif

The tiff settings that are wrong are:

Resolution: 96, 96 pixels/inch                  THIS SHOULD BE- 204, 196
Compression Scheme: CCITT Group 4            THIS SHOULD BE- CCITT Group 3

Please fix this.
================================
Sorry, the ClassF TIFF file MUST be in black and white mode, grayscale TIFF file is not comply with the faxable TIFF spec, please understand this matter.

Please look at TIFF-F Revised Specification from following web page,

http://cool.conservation-us.org/bytopic/imaging/std/tiff-f.html

VeryDOC

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

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!