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]> |
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?
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