Sha256: 95240c4266e5230397ef68db8238f6ffa948df7bbb48e083c25aa2160bb9b2d0
Contents?: true
Size: 422 Bytes
Versions: 2
Compression:
Stored size: 422 Bytes
Contents
module Asposepdfjava module GetNumberOfPages def initialize() data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Create PDF document pdf = Rjb::import('com.aspose.pdf.Document').new(data_dir + 'input1.pdf') page_count = pdf.getPages().size() puts "Page Count:" + page_count.to_s end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asposepdfjava-0.0.2 | lib/asposepdfjava/Pages/getnumberofpages.rb |
asposepdfjava-0.0.1 | lib/asposepdfjava/Pages/getnumberofpages.rb |