![]() |
Combine TIFF files?
I'm thinking of getting the Epson Perfection 1640SU Office Scanner. It is not supported native in OS X, but it is supported by VueScan. The reason I'm getting it is because of its Automatic Document Feeder (ADF). However, while VueScan supports a "batch mode" which will produce lots of TIFF files, I would like all my TIFF files to be saved as a single PDF file.
Does anyone know any way to convert a folder of TIFF files into a single PDF document? Or even a single multipage TIFF document (one could always print and then save as a PDF)? Thanks. |
GraphicConverter allows you to make multi-page .tiff files. I tried exporting the result as a .pdf using Preview but failed.
|
I have Graphic Converter, but I don't see how one goes from a folder of single TIFF files to a single Multi-page TIFF. How did you do it?
Thanks! |
1) in file menu select "Convert..." which will open the Convert window
2) navigate to inside of folder containing tiffs in left hand pane 3) select all tiffs 4) make tiff the destination format 5) in right hand pane select destination of result 6) click "Options" button, in resulting dialog box click "Multi Page" File and "Mac" for format 7) click "Convert" button, top middle of Convert window Note: as far as I've been able to determine, the results are only viewable in GraphicConverter, neither Photoshop 7 nor Preview show anything but the first page. |
That's great. I tried it and it worked. GC has a problem printing multi-page tiffs. I use Tiff-Sight to do that, and it opens the multi-page TIFFs created with GC just fine, allowing me to save them as PDFs.
Someone else pointed out that OmniPage Pro X can convert multiple TIFF files to a single multipage PDF file (with OCR) or a multipage TIFF file (without OCR). Looks like I might be able to buy a scanner! Although the whole process is a bit of a pain. It might be worth while to wait and see if some new scanner software comes along ... But that doesn't seem likely any time soon. |
It might be worth looking into seeing if an AppleScript might help reduce the drudgery of the process.
|
An applescript would be great, unfortunately this is beyond my ability.
I looked at the GC web site and they have some scripts, but none that fit the bill: http://lemkesoft.com/us_scripts.html And I opened up the Applescript Dictionary for GC and found that they have a "concat TIFF" command!!! But without any examples to go from I don't know how one would create a script to take a whole bunch of TIFF files and concat them ... A google search for "GraphicConverter Applescript" didn't produce much either... |
http://www.math.ucl.ac.be/~stubbe/Mi...pleScript.html
These applescripts include a few "batch" commands, but I'm still not clear how to use them with the "concat TIFF" command... |
When I get enough time to do more than quickly browse this forum, I'll look into creating one...
|
I've been in touch with the developer of GC and he says that the "Convert ..." panel is not yet scriptable.
I wonder if there is not some way to do this via the terminal? Are there any command line TIFF programs? |
This hint offers a solution using the built-in Jaguar "preview" application.
http://www.osxfaq.com/dailytips/10-2002/10-21.ws However, there are two problems. (1) It is very slow. (2) There is a bug in the way Preview handles TIFF files! http://docs.info.apple.com/article.html?artnum=107181 They all come out upside down and backwards! Still, there is hope that apple will fix this at some point ... |
Soooo, you could send your source tiffs into Preview upsidedown and backwards to get output that is the correct orientation?
|
I could, but then I would need to do a third step - I would have to use GC to automatically rotate and flip all the TIFF images ...
BTW: GC has a great feature where it will automatically watch a folder and perform "convert..." actions on any files dropped in to it. However, this won't work in my case because I need it to act on multiple files at once, not one at a time! To activate this, one simply holds the command key down in the "convert" window and then the "convert" button changes to "auto-convert". But, like I said, it doesn't help me. |
Nice pit for future reference, would be handy for digi-cam users...
|
Boy is this your day. Today a hint was posted about ImageMagick being made available as an OS X package. Download this puppy and install it. Fear not the command line. This is the tool you need. Once you have installed ImageMagick, open up your friendly, neighborhood Terminal.app and cd to the directory which contains your mob of TIFFs. Then type the following command:
Code:
convert -compress JPEG -adjoin *tiff pdf:all_these_files_in_one.pdf
Best of luck. -Eravau |
That is great! Thanks. Some comments:
Here is the official documentation of the convert command: http://www.imagemagick.org/www/Image...tails-compress I am still playing with it to try to get it to work properly. I have a folder I am testing it on with 8 TIF files that are approximately 1MB each. The PDF created by Graphic Converter is only 572KB, but the one created by ImageMagick using JPEG compression (it defaults to 70%) is over 10MB!!! I tried LZW (which only seems to work uncompressed) and that was half the size, but still very large. So far ZIP seems to create the smallest PDF files - only 1.5MB. I can't see any difference in quality between the PDF images created with the different compressions. The other compressions available are: Quote:
Will post back later. |
Here is the end result of trying out all the different compressions. As you can see, ZIP was the best, but still 3x bigger than Graphic Converter's file!
JPEG 10.2 MB Lossless 5.9 MB GZIP 5.9 MB RLE 5.9 MB LZW 5.9 MB Group4 5.9 MB Fax 1.9 MB Zip 1.5 MB Does anyone know how to make this command take up less resources when it is running in the background? It seems to slow down my computer. |
To give command-line utilities lower (or higher) priority, use the nice command to precede your command. The syntax is basically:
nice -n <integer from -20 to 20> <command and options> -20 is less nice (takes more of the processor). 20 is the nicest (leaves the most processor for other apps). The command is just the command that you want to run nicely along with all of its options and flags. So in your case, you'll have something like: nice -n 10 convert -compress ZIP *tif pdf:all_together_now.pdf For all the info on nice, of course, read the man page. Ditto on on convert (and the other ImageMagick commands such as identify, montage, mogrify and composite.). |
By the way, I'm a little bit confused by your compression results. I got very different results from you with JPEG and ZIP compression. I started with 3 color portraits as TIFFs (@ 2048 x 1536) that totaled 28.6 MB. The ZIP compressed PDF is 20.4 MB. The default JPEG compression produces a 917 KB PDF. The JPEG compressed PDF at 60% is 622 KB. I didn't see any distracting artifacts at either of the JPEG settings, but I doubt I would take the quality any lower.
I'm not sure what's causing the difference. Maybe you have a different kind of image. Are you scanning pure black and white (non-grayscale)? That would probably make ZIP a better choice. Whereas I'm working on color photos which compress beter with JPEG. |
Thanks for the help!
Yes, I am using B&W document images, although I'm not sure if they are greyscale or not. When I get my scanner and Vuescan set up, however, I will have more control over the nature of the initial TIFF files, so maybe I can figure a way to make the final result smaller. Now the trick will be to write an applescript to automate the process. Ideally, it should take a folder of images, convert all the TIFs inside to a PDF file at the same level as the folder, give the PDF file the same name as the folder, and then delete the folder. Shouldn't be too hard to do, but it will take me a while! |
| All times are GMT -5. The time now is 05:38 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.