Article View: gnu.ghostscript.bug
Article #16Re: Fax drivers in Ghostscript?
From: Thomas Huppertz
Date: Fri, 30 Oct 1992 04:56
Date: Fri, 30 Oct 1992 04:56
36 lines
2135 bytes
2135 bytes
ghost@aladdin.COM (L. Peter Deutsch) writes:
>Re <9210180251.AA06664@cookie-crisp>
>> There are some Fax drivers in GHostscript,
>> namely "dfaxhigh" and "dfaxlow".
>>
>Ghostscript includes the CCITTFax *filters*, which can convert
>between ordinary bitmaps and G3/G4 format. It doesn't currently have
>a plain fax *driver*. I might add one in the next release if someone
>can give me some suggestions as to what parameters it might have that
>aren't already in the filters (e.g., bit/byte order swapping).
*aehem* ...?
The dfaxhigh and dfaxlow produce nearly poor g3-format, except that
one headerline (FAXMAGIC) is included and not accepted by the
faxmodems.
To solve this, comment out in the function "faxout_begin_page" the
statements
fwrite ((char*)&hdr, sizeof(hdr), 1, faxp->fp);
puteol (faxp);
and then you have a really g3-format.
Another problem could be the bitorder. You have to configure your
modem to use the right bitorder (which one was it ? :-).
If you want to build a little converter to change the bitorder, look
at the netfax-distribution and take the functions "init_swaptable" and
"bit_reverse" and build a little main() to do this for each byte of
the g3-file. I haven't looked how and why it works - but it works.
--
==================== Gruss: === Thomas === Huppertz ========================
HUPPERTZ EDV-Beratung, Thererstr. 10, 8083 Mammendorf, Germany
Tel. ++49-8145-1569, Fax. ++49-8145-8286
==================== EMail:== thu@huedv.hu.sub.org ==========================
Technical Details
Message-ID:
<3458@huedv.hu.sub.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!huedv.HU.SUb.ORG!thuShow Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!huedv.HU.SUb.ORG!thu From: thu@huedv.HU.SUb.ORG (Thomas Huppertz) Subject: Re: Fax drivers in Ghostscript? Message-ID: <3458@huedv.hu.sub.org> Sender: gnulists@ai.mit.edu Reply-To: thu@huedv.hu.sub.org Organization: HUPPERTZ EDV-Beratung, Thererstr. 10, 8083 Mammendorf, Germany Distribution: gnu Date: Fri, 30 Oct 1992 04:56:04 GMT Approved: bug-ghostscript@prep.ai.mit.edu Lines: 37