I am using this command to generate the TIFF from a PDF:
/usr/bin/gs -q -sDEVICE=tiffg3 -sPAPERSIZE=a4 -r204x196 -dNOPAUSE
-sOutputFile=$tiffFile -- $pdfFile
And tiffinfo for a 2 page generate file gives:
# tiffinfo teste.tiff
TIFF Directory at offset 0x8 (8)
Subfile Type: multi-page document (2 = 0x2)
Image Width: 1728 Image Length: 2292
Resolution: 204, 196 pixels/inch
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: 4969
Planar Configuration: single image plane
Page Number: 0-0
Software: GPL Ghostscript 8.71
DateTime: 2012:10:04 22:16:14
Group 4 Options: (0 = 0x0)
TIFF Directory at offset 0x394 (916)
Subfile Type: multi-page document (2 = 0x2)
Image Width: 1728 Image Length: 2292
Resolution: 204, 196 pixels/inch
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: 4969
Planar Configuration: single image plane
Page Number: 1-0
Software: GPL Ghostscript 8.71
DateTime: 2012:10:04 22:16:14
Group 4 Options: (0 = 0x0)
I think this is correct, since it came from asterisk FAXing Howtos. Is that
correct?
I'll try doing some more tests with debug info ON and post back the results.
Thanks,
Gabriel
2012/10/5 Steve Underwood ste...@coppice.org
On 10/06/2012 02:53 AM, Gabriel Ortiz Lour wrote:
Hi,
Does anyone had the problem of asterisk SendFax + spandsp sending only
the first page of a multi-page TIFF file?
Seams to be related to spandsp ECM config.
Any thoughts about it?
Thanks,
Gabriel
Check the file with tiffinfo. Perhaps the format of the second page is
different from the first, and incompatible with faxing. Spandsp will
renegotiate and continue sending if the second page is of a different but
valid format, but sending will end if the second page is, say, colour or
the wrong width.
Steve
--
__**__**_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/**mailman/listinfo/asterisk-**usershttp://lists.digium.com/mailman/listinfo/asterisk-users
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users