Sha256: 99327b7226e09f5990cbf55844dfabf08023a60afc0496a13c1ffdc9e904cc8f
Contents?: true
Size: 974 Bytes
Versions: 5
Compression:
Stored size: 974 Bytes
Contents
= pdftoimage * {Homepage}[http://rubygems.org/gems/pdftoimage] == Description PDFToImage is a ruby gem which allows for conversion of a PDF document into images. It uses poppler_utils to first convert the document to PNG and then allows usage of ImageMagick to convert the image into other formats. The reasoning behind using poppler_utils is due to the fact that ghostscript occasionally has trouble with certain PDF documents which poppler_utils seems to be able to parse without error. == Examples require 'pdftoimage' images = PDFToImage.open('somefile.pdf') images.each do |img| img.resize('50%').save("output/page-#{img.page}.jpg") end require 'pdftoimage' PDFToImage.open('anotherpdf.pdf') do |page| page.resize('150').quality('80%').save('out/thumbnail-#{page.page}.jpg") end == Requirements poppler_utils ImageMagick == Install $ gem install pdftoimage == Copyright Copyright (c) 2010 Rob Flynn See LICENSE.txt for details.
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pdftoimage-0.1.7 | README.rdoc |
pdftoimage-0.1.6 | README.rdoc |
pdftoimage-0.1.5 | README.rdoc |
pdftoimage-0.1.4 | README.rdoc |
pdftoimage-0.1.3 | README.rdoc |