Sha256: 128d46f30c51c21dc0da09600703eb4e64d56c67805f7d5721716a1f7c483c51

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

module Asposewordsjavaforruby
  module Doc2Pdf

    def doc_to_pdf()
        data_dir = File.dirname(File.dirname(File.dirname(__FILE__))) + '/data/'
        
        # Open document.
        document = Rjb::import('com.aspose.words.Document').new(data_dir + "Template.doc")
        
        # Save the document in PDF format.
        document.save(data_dir + "Doc2PdfSave Out.pdf") 
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposewordsjavaforruby-0.0.5 lib/asposewordsjavaforruby/doc2pdf.rb