Reputation: 3338
We're looking for an all around document converter to create small thumbnails for previewing in our asp.net project. So far we've encountered a handfull of difficult to use/document commandline tools that can convert one filetype to jpg, but we're looking for an all around solution. ( xls, doc, pdf to jpg ). Does anybody know any solutions for this problem with a pricetag that doesn't exceed 700- 1500 $?
Upvotes: 2
Views: 671
Reputation: 9074
Its just an Idea About Creating Thumbnails.
You will have to use image.GetThumbnailImage()
method.
It works as follows:
Image img = Image.FromFile(fName);
Image thumb = img.GetThumbnailImage(120, 120, ()=>false, IntPtr.Zero);
thumb.Save(Path.ChangeExtension(fName, "thumb"));
MSDN:
http://msdn.microsoft.com/en-us/library/system.drawing.image.getthumbnailimage.aspx
Hope Its Helpful.
Upvotes: 1