Sha256: 2a8fcaf20ce727f187704dd2fbb53c5927b59db34847d59e7f0ac62ba25f1b90

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

module Asposepdfjava
  module PdfToDoc
    def initialize()
    	# The path to the documents directory.
        data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
                
        # Open the target document
        pdf = Rjb::import('com.aspose.pdf.Document').new(data_dir + 'input1.pdf')

        # Save the concatenated output file (the target document)
        pdf.save(data_dir+ "output.doc")

        puts "Document has been converted successfully"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
asposepdfjava-0.0.2 lib/asposepdfjava/Converter/pdftodoc.rb
asposepdfjava-0.0.1 lib/asposepdfjava/Converter/pdftodoc.rb