Sha256: 76ea412dd58e4d0ac544337b2438bff2de5a81e2b525c2ae8cf95d0b14b26372
Contents?: true
Size: 303 Bytes
Versions: 36
Compression:
Stored size: 303 Bytes
Contents
#!/usr/bin/env ruby # coding: utf-8 # Extract all text from a single PDF require 'rubygems' require 'pdf/reader' filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/data/cairo-unicode.pdf" PDF::Reader.open(filename) do |reader| reader.pages.each do |page| puts page.text end end
Version data entries
36 entries across 35 versions & 3 rubygems