FAX Support - How to automatically convert faxes to PDF?

FAX Support - How to automatically convert faxes to PDF?

There are two recommended methods for automatically converting received faxes to PDF files.

  1. Use the tiff2pdf utility:

This requires that the 'libtiff-tools' package be installed beforehand, either by apt-get, yum, or whichever package manager your Linux distro uses. For example, on a Debian/Ubuntu system, you would run:  apt-get install libtiff-tools

Below is an example of how to execute tiff2pdf from the Asterisk dialplan:

exten => h,n,System(/usr/bin/tiff2pdf -o /tmp/${FAXFILE}.pdf /tmp/${FAXFILE})

  1. Use ImageMagick (This option may work more reliably for some systems than tiff2pdf, depending on the environment):

To install this, you would simply install the 'imagemagick' package using the package manager (such as apt-get or yum). On a Debian/Ubuntu system, for example, you would run: apt-get install imagemagic

Below is an example of how to execute ImageMagick from the Asterisk dialplan: 
exten => h,n,System(/usr/bin/convert /tmp/${FAXFILE} /tmp/${FAXFILE}.pdf)

 

Using either of these methods should result in the generation of a new PDF file, which can then be sent off via email.