]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
pdf2fax/ps2fax: Use -dMaxStripSize=0
authorAidan Van Dyk <mountie@cherry.home.highrise.ca>
Wed, 5 May 2010 15:42:46 +0000 (11:42 -0400)
committerAidan Van Dyk <mountie@cherry.home.highrise.ca>
Wed, 29 Jun 2011 13:31:49 +0000 (09:31 -0400)
Ghostscript changed their default from 0.  Unfortunately, in 8.71, they used a
small 8K, which causes "blank images" when this is send in 2D-MMR right to the
client by faxsend assuming it's a single strip.

This can be overridden/changed using FaxModify.

util/pdf2fax.gs.sh.in
util/ps2fax.gs.sh.in

index 403eaba9e684ca8936cf916b73b5683386faa869..bc15cf83cc96e595cba4a34d00003f83cde7d0d5 100644 (file)
@@ -165,6 +165,7 @@ esac
 # See the comments on AdjustWidth above.
 #
 FIXEDWIDTH="-dFIXEDMEDIA"
+STRIPSIZE="-dMaxStripSize=0"
 
 #
 # Apply customizations such as watermarking.
@@ -179,6 +180,7 @@ $PS -q \
     -dSAFER=true \
     -sPAPERSIZE=$paper \
     $FIXEDWIDTH \
+    $STRIPSIZE \
     -dBATCH \
     -r$hres\x$vres \
     "-sOutputFile=$out" \
index 2c7fd2dfd04ad691c3becff88796731fe0adb209..048af01c69aa82a2a278ea7b5ee7e66cc1b9c39b 100644 (file)
@@ -165,6 +165,7 @@ esac
 # See the comments on AdjustWidth above.
 #
 FIXEDWIDTH="-dFIXEDMEDIA"
+STRIPSIZE="-dMaxStripSize=0"
 
 #
 # Apply customizations such as watermarking.   
@@ -179,6 +180,7 @@ $CAT $fil | $PS -q \
     -dSAFER=true \
     -sPAPERSIZE=$paper \
     $FIXEDWIDTH \
+    $STRIPSIZE \
     -r$hres\x$vres \
     "-sOutputFile=$out" \
     -