Generate Thumbnails From a PDF

I have a PDF files with 180+ pages.  I want to generate thumbnails 200×250 in JPG format.

PDFView4Net: It takes a total of ~52 seconds.

Looking for an alternative solution, I come across a solution involving ImageMagick+GhostSciprt.  Using the command “convert”, it takes only ~15 seconds to generate all the thumbnail images.  However, the image quality seems to suffer a little.  The default dpi is 72 for ImageMagick vs 96 for PDFView4Net.

The windows version of ImageMagick has a bug.  If you have a multiple pages PDF, it may convert only the first page.

http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=18001

The solution is “Edit delegates.xml and change pngalpha to pnmraw.”  It works for me.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s