🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.ghostscript.bug
1 messages
1 total messages Started by Thomas Huppertz Fri, 30 Oct 1992 04:56
Re: Fax drivers in Ghostscript?
#16
Author: Thomas Huppertz
Date: Fri, 30 Oct 1992 04:56
36 lines
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 ==========================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads