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] Partial Page Output after Ubuntu upgrade
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 02.06.2010 21:40, schrieb Gerald Drouillard:
>
> Try reading:
> http://www.mail-archive.com/debian-bugs-dist@xxxxxxxxxxxxxxxx/msg17226.php
There are other threads that explain the problem better.
GhostScript now has a slightly modified default format for tiffg4 output files. There are two options to fix this:
1. add options to the gs command to make it compatible with the previous default, or
2. post-process the TIFF file created by gs.
> I installed psrip and added Use2D: no in /var/spool/hylafax/etc/config
"Use2D: no" is a workaround. This instructs HylaFAX to not use the problematic file format. You will probably get larger TIFF files and longer transmission times.
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.
Bodo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkwMhf0ACgkQnMz9fgzDSqcZbQCgjq+YTu36NSwaUidlY20hba7a
53cAoIKPSuMhsUsmCoN7rnG91Hr/Cuzw
=JzC4
-----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