Forum: Ruby on Rails Extract one page of PDF with rmagick?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Paul L. (Guest)
on 2006-03-29 22:18
(Received via mailing list)
I know this works from the command line:

% convert 'svn-book.pdf[0]' first-page.png

The above example will only process the first page of a PDF. This is
great for creating a thumbnail of the 'cover page' of a PDF, and it
avoids the CPU load required to process a huge file. (in this case,
the svn-book.pdf is 300 pages)

How would I accomplish this using the magick_file_column?

To use the command line as an example, the 'svn-book.pdf[0]' isn't
really and argument such as -size 120x120, etc. How can I pass that
[0] to rmagick when I'm processing a PDF?

This topic is locked and can not be replied to.