New.php file and image conversion

bdwderm wrote on Thursday, December 04, 2008:

Hi,

I don’t want my scanned notes converted to jpg:

$imagepath = "$imagedir/${encouter}_$formid.jpg

Will changing the extension to pdf work?

Thanks for your attention.

brent

sunsetsystems wrote on Thursday, December 04, 2008:

I don’t know offhand if that will work – I suspect not.  You could clone some code from interface/fax/fax_dispatch.php which invokes tiff2pdf to create PDFs.

But also, JPEG format was chosen because that will display inline on a page, whereas PDF requires an external viewer.  I’m not sure you’d be happy with it.

Rod
www.sunsetsystems.com

bdwderm wrote on Thursday, December 04, 2008:

Hi Rod,

Thanks for the feedback. When I generate a patient report that includes a scanned encounter the scaling is not right and is therefore problematic.

If I generate a report that includes a document that was uploaded using the "Upload Document to category" function it remains a pdf and prints perfectly.

As such I would prefer everything to be pdf and not convert to jpg.

Brent