Skip to content

Commit c82d2e9

Browse files
Merge pull request aspose-pdf#9 from masood-anwer/master
Aspose.Pdf Java for Ruby
2 parents 58fb9fc + 35fc3b5 commit c82d2e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1189
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2001-2015 Aspose Pty Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Aspose_Pdf_Java_for_Ruby
2+
Aspose.Pdf Java for Ruby is a gem that demonstrates / provides the Aspose.Pdf for Java API usage examples in Ruby by using Rjb - Ruby Java Bridge.
3+
4+
## Installation
5+
6+
Execute following command.
7+
8+
$ gem install asposepdfjava
9+
10+
To download Aspose.Pdf for Java API to be used with these examples through RJB, Please navigate to:
11+
12+
http://www.aspose.com/community/files/72/java-components/aspose.pdf-for-java/
13+
14+
Note: Create jars folder at root of the gem and copy downloaded Aspose.Pdf for java component into it.
15+
16+
For most complete documentation of the project, check Aspose.Pdf Java for Ruby confluence wiki link:
17+
18+
http://www.aspose.com/docs/display/pdfjava/2.+Aspose.Pdf+Java+For+Ruby
19+
20+
## Usage
21+
22+
```ruby
23+
require File.dirname(File.dirname(File.dirname(__FILE__))) + '/lib/asposepdfjava'
24+
include Asposepdfjava
25+
include Asposepdfjava::HelloWorld
26+
initialize_aspose_pdf
27+
```
28+
Lets understand the above code
29+
* The first line makes sure that the aspose pdf is loaded and available
30+
* Include the files that are required to access the aspose pdf
31+
* Initialize the libraries. The aspose JAVA classes are loaded from the path provided in the aspose.yml file
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require "bundler/gem_tasks"
2+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'asposepdfjava/version'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = 'asposepdfjava'
8+
spec.version = Asposepdfjava::VERSION
9+
spec.authors = ['Aspose Marketplace']
10+
spec.email = ['marketplace@aspose.com']
11+
spec.summary = %q{A Ruby gem to work with Aspose.Pdf libraries}
12+
spec.description = %q{AsposePdfJava is a Ruby gem that can help working with Aspose.Pdf libraries}
13+
spec.homepage = 'https://github.com/asposepdf/Aspose_Pdf_Java/tree/master/Plugins/Aspose_Pdf_Java_for_Ruby'
14+
spec.license = 'MIT'
15+
16+
spec.files = `git ls-files`.split($/)
17+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19+
spec.require_paths = ['lib']
20+
21+
spec.add_development_dependency 'bundler', '~> 1.7'
22+
spec.add_development_dependency 'rake', '~> 10.0'
23+
spec.add_development_dependency 'rspec'
24+
25+
spec.add_dependency 'rjb', '~> 1.5.2'
26+
27+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
jar_dir: ../asposepdfjava/jars
2+
license_path: ../asposepdfjava/license/path
3+
jvm_args: -Xms512m -Xmx1G
4+
5+
Lines changed: 69 additions & 0 deletions
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<html>
2+
<body>
3+
<p>This is sample HTML file.</p>
4+
</body>
5+
</html>
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)