HylaFAX The world's
most advanced open source fax server
|
|
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
Re: [hylafax-users] send pdf problems
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 08.06.2010 23:29, schrieb Filippo Meloni:
> Hi there, i have installed hylafax-server and hylafax-client on Ubuntu
> server 10.04 LTS from our repos, when i send from command line or from
> some client a pdf or normal ASCII txt file i receive a blank page on
> real fax.
[...]
> So whe i send a normal .tif file thats all right.
Probably this is related to a change in GhostScript.
GhostScript now has a slightly modified default format for tiffg4 output files. There are two options to fix this:
1. add option -dMaxStripSize=0 to the gs command to get the behavior of previous versions, or
2. post-process the TIFF file created by gs.
As an alternative workaround you can add
Use2D: no
to /etc/hylafax/config. With this HylaFAX will instruct gs to create tiffg3 format instead of tiffg4.
Based on other proposals I fixed the problem by inserting a post-processing with tiffcp in /var/spool/hylafax/bin/ps2fax and pdf2fax.
See attached patch.
See also Ubuntu bug report
https://bugs.launchpad.net/ubuntu/+source/hylafax/+bug/580568
This includes a different fix that adds
- -dMaxStripSize=0
to the gs command line, but only for ps2fax. A similar patch is needed in pdf2fax.
Bodo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkwP8rQACgkQnMz9fgzDSqda4QCaArBC8qgy++CFgQ3cvo6yHbGj
prQAn1qXuJENdn/8MciyHVftrQfdRJbh
=LakZ
-----END PGP SIGNATURE-----
--- pdf2fax.orig 2010-06-06 14:15:08.000000000 +0200
+++ pdf2fax 2010-06-06 14:15:08.000000000 +0200
@@ -183,3 +183,10 @@
-r$hres\x$vres \
"-sOutputFile=$out" \
$fil
+
+if [ "$device" = "tiffg4" ]
+then
+ tmp=$out.$$.tmp
+ tiffcp -r -1 $out $tmp
+ mv -f $tmp $out
+fi
--- ps2fax.orig 2010-06-06 14:15:08.000000000 +0200
+++ ps2fax 2010-06-06 14:15:08.000000000 +0200
@@ -182,3 +182,10 @@
-r$hres\x$vres \
"-sOutputFile=$out" \
-
+
+if [ "$device" = "tiffg4" ]
+then
+ tmp=$out.$$.tmp
+ tiffcp -r -1 $out $tmp
+ mv -f $tmp $out
+fi