Module: Asposewordsjavaforruby::ApplyLicense

Defined in:
lib/asposewordsjavaforruby/applylicense.rb

Instance Method Summary collapse

Instance Method Details

#apply_licenseObject



7
8
9
10
11
12
13
# File 'lib/asposewordsjavaforruby/applylicense.rb', line 7

def apply_license()
    # This line attempts to set a license from several locations relative to the executable and Aspose.Words.dll.
    # You can also use the additional overload to load a license from a stream, this is useful for instance when the
    # license is stored as an embedded resource
    license = Rjb::import('com.aspose.words.License').new()
    license.setLicense('Aspose.Words.lic')
end

#initializeObject



3
4
5
# File 'lib/asposewordsjavaforruby/applylicense.rb', line 3

def initialize()
    apply_license()
end