Create Fax TIFF or Class-F files from PDF files

Hi, I am currently testing your demo doc2any command line utility. I am looking to purchase it but am having some trouble with converting a file to a fax type. Can you tell me what the correct syntax would be?

I tried:

C:\doc2any_cmd>doc2any -multipagetif -bitcount 1 -compression 3 xxx.doc xxx.tif

C:\doc2any_cmd>doc2any -multipagetif -bitcount 1 -compression 3 -width 1728 -xres 300 -yres 300 xxx.doc xxx.tif

I need it to be Compression Mode: 3=Group 3 Fax

Thanks.

Customer
==================================
Hi,

you can run following command line to convert your DOC file to Group 3 Fax TIFF file,

doc2any -multipagetif -bitcount 1 -compression 88882 xxx.doc xxx.tif

doc2any -multipagetif -bitcount 1 -compression 88883 xxx.doc xxx.tif

Please don't hesitate to contact us if you have question on this.

Thank you!

Best regards,
VeryPDF
=================================
We are still testing the doc2any converting and are now experiencing a problem with faxing the actual tiff created.

I used the syntax you sent me below (sometimes -useprinter also which made the output document look better)

For ex. doc2any -multipagetif -bitcount 1 -compression 88883 -useprinter xxx.doc xxx.tif

The file does not receive successfully via fax. It worked previously when I was using the compression of 3 and that doesn’t seem to be working either now. Can you please assist me with this?

Customer
==================================
Actually this syntax worked for faxing:

doc2any -multipagetif -bitcount 1 -compression 3 -width 1728 -xres 204 -yres 196 -useprinter xxx.doc  xxx.tif

and this does not:

doc2any -multipagetif -bitcount 1 -compression 88883 -useprinter xxx.doc xxx.tif

can you tell me why?

Customer
===================================
Sorry to be bombarding you with emails but I am also trying out the pdf2image utility and neither syntaxes are working for faxing (I cannot send/receive the fax once it is converted):

Syntax:

c:\pdf2image_cmd\pdf2img.exe -compress 88883 -multipage xxx.pdf xxx.tif

c:\pdf2image_cmd\pdf2img.exe -compress 3 -mono -multipage -xres 204 -yres 196 -w 1728 xxx.pdf xxx.tif

I'm not sure if the dimensions (width / height ) are causing it. Please assist. Thank you.

Customer

========================================
Sorry for the trouble, can you please let us know what error message did you get when you fax the xxx.tif by fax machine? Do you have a TIFF file that faxable by your fax machine?

Thank you!

Best regards,
VeryPDF
=========================================
Regarding the pdf2image, I noticed that the tif that works has a rowsperstrip of 2156, while the one I converted with pdf2image had a value of 25. I have attached the dump of the tif settings, so you can take a look.

My syntax to convert was such to force it to dimensions 1728 x 2156:

C:\>c:\pdf2image_cmd\pdf2img.exe -multipage -mono -compress 3 -xres 204 -yres 196 -w 1728 -h 2156 c:\testfax\xxx.pdf c:\testfax\doc2any\xxx.tif

Good fax:
256(               ImageWidth)   4        1       6c0 (/ 1728)
257(              ImageLength)   4        1       86c (/ 2156)
278(             RowsPerStrip)   4        1       86c (/ 2156)

Bad fax:
256(               ImageWidth)   4        1       6c0 (/ 1728)
257(              ImageLength)   4        1       86c (/ 2156)
278(             RowsPerStrip)   3        1        25 (/ 37)

This fax could not even make it through at all (we did not see a specific error). Please let me know if you can assist with this otherwise we will need to look elsewhere for software.

Customer

===============================
Thanks for your message, we can solve this problem to you, that's no problem.

Thank you!

Best regards,
VeryPDF
=================================
We have created a new version of pdf2img.exe to you, please download it from following URL,

XXXXXXXXXXXXXXXXXX

the new version will set " RowsPerStrip " value to 2156 (same as height), if you have any question for the new version, please feel free to let us know.

Thank you!

Best regards,
VeryPDF
====================================
Thank you but that version does not work either. I was just assuming it was the rowsperstrip but it is probably a few settings. For ex. the xres and yres is different:

BAD FAX settings:

282(              XResolution)   5        1      4a2a (/ 18986)
283(              YResolution)   5        1      4a32 (/ 18994)

GOOD FAX settings:
282(              XResolution)   5        1        fe (/ 254)
283(              YResolution)   5        1       106 (/ 262)

Some other settings that are different:

BAD FAX:
------------------------------

Offset Of first IFD:     44de (/ 17630)
---------------------- Tiff IFD (offset: 0x000044de) ---------------------- number of entries: 17
279(          StripByteCounts)   4        1      44d5 (/ 17621)
297(               PageNumber)   3        2     10001 (/ 65537)

GOOD FAX:
------------------
Offset Of first IFD:        8 (/ 8)
---------------------- Tiff IFD (offset: 0x00000008) ---------------------- number of entries: 20
279(          StripByteCounts)   4        1      2e5a (/ 11866)
297(               PageNumber)   3        2         0 (/ 0)

I do not know so much about faxing formats but I am assuming the dump of the tif formats should be pretty similar. See attached dump files. (doc2anydumptif.txt is good, pdf2imagedumptif is bad). Please if you can compare them yourself and then fix them.

Thank you.

Customer

===============================
Hi,

dumptif.exe does report wrong XResolution and YResolution for output TIFF files, you can use tiffinfo.exe to get the correct XResolution and YResolution from output TIFF files.

e.g.,
E:\>tiffinfo.exe test_fax.tif
TIFF Directory at offset 0x8752 (34642)
Subfile Type: multi-page document (2 = 0x2)
Image Width: 1728 Image Length: 2156
Resolution: 204, 196 pixels/inch
Bits/Sample: 1
Compression Scheme: CCITT Group 3
Photometric Interpretation: min-is-white
Orientation: row 0 top, col 0 lhs
Samples/Pixel: 1
Rows/Strip: 2156
Planar Configuration: single image plane
Page Number: 1-1
PageName: Page 1

Can you please email to us following two TIFF files for checking purpose?

1. a correct TIFF file which can be fixed by your Fax machine,
2. a wrong TIFF file which can't be fixed by your Fax machine,

We will compare these two TIFF files by ourself, we will figure out a solution to you asap.

Please don't hesitate to contact us if you have question on this.

Thank you!

Best regards,
VeryPDF

================================
Attached are 2 tiff files.

Doc2anytest.tif - works
Pdf2imagetest.tif - does NOT work

2 things I noticed that look different -

1) The offset-

TIFF Directory at offset 0x8 (8)
TIFF Directory at offset 0x44de (17630)

And :

2) The pdf2imagetest.tif (broken tiff) is missing some settings:
FillOrder: msb-to-lsb
Group 3 Options: EOL padding (4 = 0x4)

I do not know if any of these are the problem. Please see what you can do. Thank you.

Customer

==================================
Hi,

We have created a new version of pdf2img.exe to you, please download new version from following URL,

XXXXXXXXXXXXXXXXXXXXXXXX

the new version of pdf2img.exe does insert following two items into output TIFF files, will this new version work better for you?

FillOrder: msb-to-lsb
Group 3 Options: EOL padding (4 = 0x4)

We haven't a way to change the "TIFF Directory at offset 0x8 (8)" yet, if this version still not work fine to you, please let us know, we will work on "TIFF Directory at offset 0x8 (8)" shortly.

Please don't hesitate to contact us if you have question on this.

Thank you!

Best regards,
VeryPDF
================================
That worked. Thank you.

Just a question: pdf2image does not allow passing in *.pdf (I think doc2any does allow it). Is there a reason for that?

For ex.

c:\pdf2image_cmd\pdf2img.exe -multipage -mono -compress 3 -xres 204 -yres 196 -w 1728 -h 2156 c:\doc2any_cmd\test\*.pdf c:\doc2any_cmd\test\*.tif



Customer
=============================
Hi,

>>Just a question: pdf2image does not allow passing in *.pdf (I think doc2any does allow it). Is there a reason for that?

You can simple run following command line to batch convert all of your PDF files to TIFF files,

for %F in (D:\temp\*.pdf) do c:\pdf2image_cmd\pdf2img.exe -multipage -mono -compress 3 -xres 204 -yres 196 -w 1728 -h 2156 "%F" "%~dpnF.tif"

Please don't hesitate to contact us if you have question on this.

Thank you!

Best regards,
VeryPDF
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!