HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] attached PDF's to EMail



I am running HylaFax 4.1.1 on Redhat 7.2. Sending and receiving faxes works
very well, but I do have a problem email attachments. When I set FaxDispatch
to FILETYPE=pdf, the notification email is sent with an attached pdf, but I
can't open the file with Acrobat or Acrobat reader. If I save attachments,
the file size of the attached pdf is 0. If I manually run faxrcvd, I get no
errors but the same results. Snippet from faxrcvd  :

elif [ "$FILETYPE" = "pdf" ]; then
	echo "Content-Type: application/pdf; name=\"c$COMMID.pdf\"" 
	echo "Content-Description: FAX document" 
	echo "Content-Transfer-Encoding: base64" 
	echo "Content-Disposition: attachment; filename=\"c$COMMID.pdf\"" 
	echo "" 
	$TIFF2PS -a2 -O $FILE.ps $FILE 2>/dev/null # fax2ps looks bad 
	$PS2PDF $FILE.ps $FILE.pdf 2>/dev/null 
	$MIMENCODE $FILE.pdf 2>/dev/null 
	$RM -f $FILE.ps $FILE.pdf 2>/dev/null 
If I manually run tiff2ps, then ps2pdf using the same files and options, I
get a viewable pdf. Silly question, but is it possible that the pdf file is
being removed before the mimencode finishes? Any help is appreciated.

Jerry Stephens
PrintPlease

winmail.dat




Project hosted by iFAX Solutions