On a certain Friday evening, just as you're about to head home for a relaxing weekend, you were informed that the client was expecting pdf files, while the images scanned were in tiff format. So, what can you do?
First option, we can download a free pdf writer (such as
CutePDF) and painfully print each image to pdf format. Bear in mind that each image may contain thousands of pages, so the pain is multiplied by a thousand times!
Second option, look for a way to convert the files in batches.
I took the first option to see if our files were possible to be converted in the first place. OK, so this was possible and would provide me with a fallback plan.
Next, I took on the second option. Majority of the batch conversion programs need to be purchased. Since this extra work was not covered in the original project costing, no budget was available. So, I decided to look for an open source library and hack together a little program to do the batch conversion.
In the end, I used
iTextSharp, and developed a program on
MonoDevelop. The little program, known as TiffToPDF (duh!) is available
here for free. Hope it'll be useful for those who need it!
To run this program, you'll need to install
.Net 2.0 Framework. Next, you need to download the
iTextSharp dll and place it in the same folder as TiffToPDF.exe.
Limitation: Doesn't work for Tiffs with JPEG compression in them. This is due to exception in loading the bitmap, the same issue you get when you try to load them in MS Paint or Windows Viewer.

Labels: imaging, tiff to pdf