HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] Borders cuttoff, papersize, scaling problem



Hi all,
I am having a problem with image scaling on a fax. I have a g3 tiff file
which I pass to sendfax to send to my fax machine. The image has a black
border around it, and it always comes out of the fax machine with about
one millimeter of the left and top borders cut off, so the border on those
sides do not appear. The page margins are okay though. I also tried
converting the original pdf into a tiffg3 file using gs, but it also has
the left and top borders cutoff.

The gs command I used is:
gs -q -sDEVICE=tiffg3 -dFIXEDMEDIA -sPAPERSIZE=a4 -dNOPAUSE
-sOutputFile="myfile.g3" "myfile" < /dev/null

I also tried using -sPAPERZIZE=letter, and now the fax comes out with
visible top and bottom borders, but the left and right borders are gone.

I also tried using efax to determine if this is a problem with my tiff, or
with hylafax, and got slightly different results. Sending an a4 sized tiff
through efax has the bottom and left borders cut, and letter sized has
only the left border cut off.

If I edit /usr/local/lib/fax/pagesizes and set the default size to
something else, it has no effect. If I pass the pdf to sendfax instead of
a tiff file,
the changed default pagesize does not alter the fax; which still comes out
with the left and top borders cut.

Now if I take my tiff file send it from a Mac using file->fax, the fax
comes out perfectly sized, and with larger margins all around so the image
appears smaller than when sent from hylafax.

I am using HylaFAX version 4.2.1 on Red Hat Linux ES4 with a USR Courier
V. Everything modem and a Panasonic KX-FP250 fax machine.

from log/c0000009, with most of the the data lines removed:

Oct 07 11:08:00.48: [12573]: REMOTE best rate 9600 bit/s
Oct 07 11:08:00.48: [12573]: REMOTE max A4 page width (215 mm)
Oct 07 11:08:00.48: [12573]: REMOTE max unlimited page length
Oct 07 11:08:00.48: [12573]: REMOTE best vres 15.4 line/mm
Oct 07 11:08:00.48: [12573]: REMOTE best format 2-D MR
Oct 07 11:08:00.48: [12573]: REMOTE best 20 ms/scanline
Oct 07 11:08:00.48: [12573]: USE 9600 bit/s
Oct 07 11:08:00.48: [12573]: USE 20 ms/scanline
Oct 07 11:08:00.48: [12573]: SEND file "docq/doc2.ps;01"
Oct 07 11:08:00.48: [12573]: USE A4 page width (215 mm)
Oct 07 11:08:00.48: [12573]: USE unlimited page length
Oct 07 11:08:00.48: [12573]: USE 7.7 line/mm
Oct 07 11:08:00.48: [12573]: USE 2-D MR

Oct 07 11:08:00.48: [12573]: SEND training at v.29 9600 bit/s
Oct 07 11:08:00.48: [12573]: <-- [9:AT+FTH=3\r]
Oct 07 11:08:00.60: [12573]: --> [7:CONNECT]
Oct 07 11:08:00.60: [12573]: <-- data [23]
Oct 07 11:08:00.60: [12573]: <-- data [2]
Oct 07 11:08:02.34: [12573]: --> [7:CONNECT]
Oct 07 11:08:02.34: [12573]: <-- data [6]
Oct 07 11:08:02.34: [12573]: <-- data [2]
Oct 07 11:08:03.05: [12573]: --> [2:OK]
Oct 07 11:08:03.05: [12573]: <-- [9:AT+FTS=7\r]
Oct 07 11:08:03.18: [12573]: --> [2:OK]
Oct 07 11:08:03.18: [12573]: <-- [10:AT+FTM=96\r]
Oct 07 11:08:03.46: [12573]: --> [7:CONNECT]
Oct 07 11:08:03.46: [12573]: <-- data [1024]
Oct 07 11:08:03.85: [12573]: <-- data [776]
Oct 07 11:08:04.25: [12573]: <-- data [2]
Oct 07 11:08:05.02: [12573]: --> [2:OK]
Oct 07 11:08:05.02: [12573]: <-- [9:AT+FRS=1\r]
Oct 07 11:08:05.08: [12573]: --> [2:OK]
Oct 07 11:08:05.08: [12573]: <-- [9:AT+FRH=3\r]
Oct 07 11:08:06.63: [12573]: --> [7:CONNECT]
Oct 07 11:08:06.88: [12573]: --> [2:OK]
Oct 07 11:08:06.88: [12573]: TRAINING succeeded
Oct 07 11:08:06.88: [12573]: DELAY 200 ms
Oct 07 11:08:07.08: [12573]: <-- [10:AT+FTM=96\r]
Oct 07 11:08:07.36: [12573]: --> [7:CONNECT]
Oct 07 11:08:07.36: [12573]: SEND begin page
Oct 07 11:08:07.36: [12573]: Reading MH-compressed image file

Oct 07 11:08:49.56: [12573]: <-- data [1024]
Oct 07 11:08:51.49: [12573]: <-- data [728]
Oct 07 11:08:51.89: [12573]: SENT 55000 bytes of data
Oct 07 11:08:51.89: [12573]: <-- data [1024]
Oct 07 11:08:52.29: [12573]: <-- data [1024]
Oct 07 11:08:53.09: [12573]: <-- data [1024]
Oct 07 11:08:53.49: [12573]: <-- data [1024]
Oct 07 11:08:55.41: [12573]: <-- data [32]
Oct 07 11:08:55.41: [12573]: SENT 4128 bytes of data
Oct 07 11:08:55.41: [12573]: SEND 2D RTC
Oct 07 11:08:55.41: [12573]: <-- data [30]
Oct 07 11:08:55.41: [12573]: <-- data [2]
Oct 07 11:08:55.41: [12573]: SEND end page
Oct 07 11:08:56.74: [12573]: --> [2:OK]
Oct 07 11:08:56.74: [12573]: <-- [9:AT+FTS=9\r]
Oct 07 11:08:56.89: [12573]: --> [2:OK]
Oct 07 11:08:56.89: [12573]: SEND send EOP (no more pages or documents)
Oct 07 11:08:56.89: [12573]: <-- [9:AT+FTH=3\r]
Oct 07 11:08:57.01: [12573]: --> [7:CONNECT]
Oct 07 11:08:57.01: [12573]: <-- data [3]
Oct 07 11:08:57.02: [12573]: <-- data [2]
Oct 07 11:08:58.23: [12573]: --> [2:OK]
Oct 07 11:08:58.23: [12573]: <-- [9:AT+FRH=3\r]
Oct 07 11:08:59.50: [12573]: --> [7:CONNECT]
Oct 07 11:08:59.76: [12573]: --> [2:OK]
Oct 07 11:08:59.76: [12573]: SEND recv MCF (message confirmation)

tiffinfo myfile.tiff:

TIFF Directory at offset 0x8
  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 3
  Photometric Interpretation: min-is-white
  FillOrder: lsb-to-msb
  Date & Time: "2005:10:07 13:01:59"
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 1
  Rows/Strip: 2292
  Planar Configuration: single image plane
  Page Number: 0-0
  Software: GNU Ghostscript 7.07
  Group 3 Options: EOL padding (4 = 0x4)

tiffcheck myfile.tiff:
REVRES
Document requires reformatting to adjust vertical resolution (convert to
98, document is 196).

This problem is completely baffling me! Thank you in advance for any
suggestions!



____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions