Skip to content

Instantly share code, notes, and snippets.

@haldun
Created December 28, 2011 21:34
Show Gist options
  • Save haldun/1529886 to your computer and use it in GitHub Desktop.
Save haldun/1529886 to your computer and use it in GitHub Desktop.
split pdf into images
require 'RMagick'
input = 'presentation.pdf'
image_list = Magick::ImageList.new
image_list.read(input)
image_list.write('jpeg:/tmp/test_%d.jpg')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment