Jump to content

e-fax - how to change from TIFF to PDF in the interface


drincon739

Recommended Posts

  • 2600Hz Employees

If the attachment in the db is a tiff, I believe the API will return the tiff. The fax manager app is accessing the attachment directly in the DB, when a fax is received it is saved to the db in tiff format. Teletype does convert to PDF which should work if libtiff-tools is installed, but only in email notifications. I don't believe it converts it in the API returning it though, this wouldn't be very difficult to implement, it would require a UI update to modify the request to ask for PDF and the api would need to convert to pdf before returning the file. 

Link to comment
Share on other sites

On 6/26/2018 at 6:47 PM, Sean Wysor said:

If the attachment in the db is a tiff, I believe the API will return the tiff. The fax manager app is accessing the attachment directly in the DB, when a fax is received it is saved to the db in tiff format. Teletype does convert to PDF which should work if libtiff-tools is installed, but only in email notifications. I don't believe it converts it in the API returning it though, this wouldn't be very difficult to implement, it would require a UI update to modify the request to ask for PDF and the api would need to convert to pdf before returning the file. 

Think this must be done on kazoo-app side as "Accept: application/pdf" of http request
Then you easy request required content type.

Link to comment
Share on other sites

  • 2600Hz Employees

To support this we need to make this  simple change to the API to convert the attachment when the user requests this. Waiting for perquisite converter some other stuff to get merged first and then I will fix this. This will still need to wait for the UI update to include configurable accept types (Tiff or PDF). 

Link to comment
Share on other sites

  • 5 months later...
  • 5 weeks later...
  • 2600Hz Employees

Yeah this is fixed. By default, it will now return PDFs which are generated from the faxed Tiff file instead of the random format of the original attachment.  This default format is configurable via the system_config parameter in the kazoo_convert document property fax.attachment_format

Link to comment
Share on other sites

×
×
  • Create New...