I want to automatically generate thumbnails for pdf documents. I followed the workaround kindly posted here
http://drupal.org/node/460132
which uses ImageCache, ImageAPI ImageMagick, and ImageCache custom actions (and unfortunately a patch to the imagecache module).

And it works! However, I also get the following error the first time I click on the thumbnail:

warning: extract() [function.extract]: First argument should be an array in ...\sites\all\modules\imagecache_actions\imagecache_customactions.module on line 121.

Could someone please advise me how to resolve this?

Any help or advice would be much appreciated.

Comments

egfrith’s picture

You might want to look at this issue, for an alternative way of creating PDF thumbnails: #366373: PDF support ( i.e. convert PDF to JPG support). At the moment, patches to imagecache and imageapi are required - but this method has made it to D7.

dman’s picture

Status: Active » Closed (won't fix)

Please go see http://drupal.org/project/pdf_to_imagefield
It's awesome, and a much better answer than trying to do this here