Re: Archiving the tagline of sent faxes in TagLine.c++ or in Class1Send.c++
Davis Desormeaux <[email protected]>
| Newsgroups | gmane.comp.telephony.fax.hylafax.devel |
|---|---|
| Message-ID | <[email protected]> |
Patrice Fournier wrote: > $$Quoting "Davis Desormeaux" <[email protected]>: > >> Hi, I’m trying to get the final buffer generated by TagLine.c++ ( >> imageTagLine() ) written to a file. I need this for legal reasons. I >> need a copy of what is originally sent by hylafax and this requires >> the TagLine on each archived faxes. (The ps and pdf files in the docq >> doesn’t have the tagline). So basically, right after the line in >> Class1Send.c++ (around line 1801) where the tagline is imaged I’m >> trying to get the final result in a file. >> >> I actually wrote the content of the ‘dp’ ( in the code we have ‘dp = >> imageTagLine( … )’ ) variable to a file using fopen() & fprintf but I >> must be doing something wrong because I cannot get the file format >> correct. >> >> So here is my question: How can I write the content of dp (which I >> think contains the data being sent) to a file. Is this encoded in >> mmr? Is this a ‘.fax’? >> This is how I write the file. I added this right after the dp = >> imageTagline( … ) : >> >> fp=fopen("/tmp/test.fax", "w"); >> fprintf(fp, "%s", dp); >> fclose(fp); >> >> Anyone can point me what I’m doing wrong? Is there a function in >> libfaxserver where I could pass 'dp' and it would convert it to a >> tiff or something? > > If you look a bit lower in that file, there is a saverawimage config > option that is checked and if set does write the image data to > "/tmp/out.fax". Just setting saverawimage to true should enable this > (if using a recent enough version of HylaFAX). > > This option exists for debugging purpose so the filename is not > configurable in current versions, you may have to change this > especially if you run multiple modems simultaneously. > > > Hi, thanks a lot Patrice, I updated from 4.4.4 to 6.0.2 and added saverawimage to my modem's config file and it works! It creates a file /tmp/out.fax but I can't open it. I mean the program fax2ps and fax2tiff don't convert it. Which program do I need to be able to view those '.fax'? Thanks a lot, -Davis ____________________ HylaFAX(tm) Developers Mailing List ____________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe [email protected] < /dev/null