This command line tool generates a cool looking icon for a provided multipage TIFF or PDF document. To use this application, type the following into a command prompt after navigating to its directory:
DocumentIconGenerator inputDoc outputSize [skewed]
The Document Icon Generator will take the first page of your document and fold it's corner over. The page is then skewed slightly and a shadow is applied. The second page is skewed slightly and placed behind the first. This process repeats until you end up with a single PNG that looks like a stack of paper was loosely placed on your desk. Very cool indeed! You can then use the image for anything your heart desires.
If you omit the [skewed] keyword as your third parameter, the pages of your document will be neatly stacked but slightly offset so you can see that there are multiple pages.
The application handles documents with 3 or fewer pages differently. It will generate an icon with 1 page (folded corner), 2 pages, or 3 pages. If you alter the source code, you can make it generate icons with as many pages as you wish.
In the solution, you will find a Generator.cs file that contains the work horse behind this application. In addition to the methods that do all of the heavy lifting, there are a series of variables that can be altered to change the appearance of the finished product. I've taken a bit of time to fine tune the output, but there's always room for improvement, so muck away!
The source and installer have now been updated to include PDF support. You can now use this command line utility to generate Document Icons of stacked pages from your PDF documents! Enjoy this added feature.
Download the Installer | Download the Source
About Atalasoft's 31 Apps in 31 Days
Make sure you add this blog to your RSS / Atom feed and check the gallery for summaries of all the apps as they are released.