lib/grim/pdf.rb in grim-0.2.0 vs lib/grim/pdf.rb in grim-0.2.1

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: UTF-8 module Grim class Pdf include Enumerable attr_reader :path @@ -27,11 +28,10 @@ # # Returns an Integer. # def count @count ||= begin - result = SafeShell.execute("gs", "-dNODISPLAY", "-q", "-sFile=#{@path}", "./lib/pdf_info.ps") - + result = SafeShell.execute("gs", "-dNODISPLAY", "-q", "-sFile=#{@path}", File.expand_path('../../../lib/pdf_info.ps', __FILE__)) result.gsub(WarningRegex, '').to_i end end # Creates an instance Grim::Page for the index passed in. \ No newline at end of file