jump to navigation

NOTE: The spam filter is being unusually aggressive. If you comment does not immediately appear, it has simply been placed in moderation and I will approve it as quickly as possible. Thank you for your patience.

"Murphy was an optimist!"

Error converting tiff to pdf November 22, 2006 10:54 am

Posted by Doug McCaughan in : Daily Life, PHP, Programming, Technology
, trackback

So I am trying to deploy the website I recently completed. Deploy? That means move the site from a development server to a production server where the world can see the application in action. It took this long to deploy because the webhost was running PHP 4.0.0 and had to upgrade to at least PHP 4.4.4 (went to 5.1.6 which is nice). However, they did not take the extra 10 minutes it would have taken to include CURL support.

So, the dev works great using CURL to pull a series of tiffs from another server, then using the Zend Framework, combine those tiffs into a single tiff, and finally convert the tiff to a pdf. I moved the code to the production server and it works fine until we get to converting the tiff to a pdf. It actually converts but the pdf is unviewable simply producing the error "file does not begin with ‘%PDF-‘." These kinds of problems are why developers never make their deadlines. I am working on the presumption that I failed to write some header information into the file. I want this over.

Comments after advertisement

Comments»

1. James - November 22, 2006

I can so relate to the “I want this over” feeling, i’ve had that feeling since monday, i’ll be glad when 4:30pm on friday arrives


trackback