Skip to content

Commit d1c5a9a

Browse files
Merge pull request #1 from kaferi/master
Developed Java SDK 18.5.0
2 parents 4abf59b + 07d56d9 commit d1c5a9a

File tree

154 files changed

+51032
-2
lines changed

Some content is hidden

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

154 files changed

+51032
-2
lines changed

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
*.class
2+
3+
# Mobile Tools for Java (J2ME)
4+
.mtj.tmp/
5+
6+
# Package Files #
7+
*.jar
8+
*.war
9+
*.ear
10+
11+
# exclude jar for gradle wrapper
12+
!gradle/wrapper/*.jar
13+
14+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
15+
hs_err_pid*
16+
17+
# build files
18+
**/target
19+
target
20+
.gradle
21+
build
22+
23+
#IDE
24+
.idea
25+
26+
local.properties

.swagger-codegen-ignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
24+
docs/*.*
25+
src/main/java/com/aspose/asposecloudpdf/auth/*.*
26+
.gitignore
27+
git_push.sh
28+
README.md
29+

.swagger-codegen/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.3.1

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Copyright (c) 2018 Aspose.Pdf for Cloud
3+
# Permission is hereby granted, free of charge, to any person obtaining a copy
4+
# of this software and associated documentation files (the "Software"), to deal
5+
# in the Software without restriction, including without limitation the rights
6+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
# copies of the Software, and to permit persons to whom the Software is
8+
# furnished to do so, subject to the following conditions:
9+
# The above copyright notice and this permission notice shall be included in all
10+
# copies or substantial portions of the Software.
11+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17+
# SOFTWARE.
18+
#
19+
language: java
20+
jdk:
21+
- oraclejdk8
22+
- oraclejdk7
23+
before_install:
24+
# ensure gradlew has proper permission
25+
- chmod a+x ./gradlew
26+
script:
27+
# test using maven
28+
- mvn test
29+
# uncomment below to test using gradle
30+
# - gradle test
31+
# uncomment below to test using sbt
32+
# - sbt test

LICENSE

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) 2018 Aspose.Pdf for Cloud
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.

README.md

Lines changed: 109 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,109 @@
1-
# aspose-pdf-cloud-java
2-
Java library for communicating with the Aspose.Pdf for Cloud API
1+
# Aspose.Pdf for Cloud
2+
[Aspose.Pdf for Cloud](https://products.aspose.cloud/pdf/cloud) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of Pdf documents in the cloud.
3+
4+
Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process documents in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights. This repository contains new generation SDKs for Aspose.Pdf for Cloud and examples.
5+
6+
These SDKs are now fully supported. If you have any questions, see any bugs or have enhancement request, feel free to reach out to us at [Free Support Forums](https://forum.aspose.cloud/c/pdf).
7+
8+
9+
## Requirements
10+
11+
Building the API client library requires [Maven](https://maven.apache.org/) to be installed.
12+
13+
## Installation
14+
15+
To install the API client library to your local Maven repository, simply execute:
16+
17+
```shell
18+
mvn install
19+
```
20+
21+
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
22+
23+
```shell
24+
mvn deploy
25+
```
26+
27+
Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information.
28+
29+
### Maven users
30+
31+
Add this dependency to your project's POM:
32+
33+
```xml
34+
<dependency>
35+
<groupId>com.aspose</groupId>
36+
<artifactId>aspose-cloud-pdf</artifactId>
37+
<version>18.5.0</version>
38+
<scope>compile</scope>
39+
</dependency>
40+
```
41+
42+
### Gradle users
43+
44+
Add this dependency to your project's build file:
45+
46+
```groovy
47+
compile "com.aspose:aspose-cloud-pdf:18.5.0"
48+
```
49+
50+
### Others
51+
52+
At first generate the JAR by executing:
53+
54+
mvn package
55+
56+
Then manually install the following JARs:
57+
58+
* target/aspose-cloud-pdf-18.5.0.jar
59+
* target/lib/*.jar
60+
61+
## Getting Started
62+
63+
Please follow the [installation](#installation) instruction and execute the following Java code:
64+
65+
```java
66+
67+
import com.aspose.asposecloudpdf.*;
68+
import com.aspose.asposecloudpdf.model.*;
69+
import com.aspose.asposecloudpdf.api.PdfApi;
70+
71+
import java.io.File;
72+
import java.util.*;
73+
74+
public class PdfApiExample {
75+
76+
public static void main(String[] args) {
77+
// Get App key and App SID from https://cloud.aspose.com
78+
PdfApi apiInstance = new PdfApi("app_key", "app_sid");
79+
String name = "name_example"; // String | The document name.
80+
String fieldName = "fieldName_example"; // String | The field name/
81+
String storage = "storage_example"; // String | The document storage.
82+
String folder = "folder_example"; // String | The document folder.
83+
try {
84+
SaaSposeResponse result = apiInstance.deleteField(name, fieldName, storage, folder);
85+
System.out.println(result);
86+
} catch (ApiException e) {
87+
System.err.println("Exception when calling PdfApi#deleteField");
88+
e.printStackTrace();
89+
}
90+
}
91+
}
92+
93+
```
94+
95+
## Unit Tests
96+
Aspose PDF SDK includes a suite of unit tests within the "test" subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.
97+
98+
## Licensing
99+
All Aspose.Pdf for Cloud SDKs are licensed under [MIT License](LICENSE).
100+
101+
## Resources
102+
+ [**Website**](https://www.aspose.cloud)
103+
+ [**Product Home**](https://products.aspose.cloud/pdf/cloud)
104+
+ [**Documentation**](https://docs.aspose.cloud/display/pdfcloud/Home)
105+
+ [**Free Support Forum**](https://forum.aspose.cloud/c/pdf)
106+
+ [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
107+
+ [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-pdf-product-family/)
108+
109+

build.gradle

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/**
2+
* Copyright (c) 2018 Aspose.Pdf for Cloud
3+
* Permission is hereby granted, free of charge, to any person obtaining a copy
4+
* of this software and associated documentation files (the "Software"), to deal
5+
* in the Software without restriction, including without limitation the rights
6+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
* copies of the Software, and to permit persons to whom the Software is
8+
* furnished to do so, subject to the following conditions:
9+
* The above copyright notice and this permission notice shall be included in all
10+
* copies or substantial portions of the Software.
11+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17+
* SOFTWARE.
18+
*/
19+
apply plugin: 'idea'
20+
apply plugin: 'eclipse'
21+
22+
group = 'com.aspose'
23+
version = '18.5.0'
24+
25+
buildscript {
26+
repositories {
27+
jcenter()
28+
}
29+
dependencies {
30+
classpath 'com.android.tools.build:gradle:2.3.+'
31+
classpath 'com.novoda:bintray-release:0.3.4'
32+
}
33+
}
34+
35+
repositories {
36+
jcenter()
37+
}
38+
39+
apply plugin: 'java'
40+
apply plugin: 'maven'
41+
apply plugin: 'com.novoda.bintray-release'
42+
43+
sourceCompatibility = JavaVersion.VERSION_1_7
44+
targetCompatibility = JavaVersion.VERSION_1_7
45+
46+
install {
47+
repositories.mavenInstaller {
48+
pom.artifactId = 'aspose-cloud-pdf'
49+
}
50+
}
51+
52+
task execute(type:JavaExec) {
53+
main = System.getProperty('mainClass')
54+
classpath = sourceSets.main.runtimeClasspath
55+
}
56+
57+
58+
59+
dependencies {
60+
compile 'io.swagger:swagger-annotations:1.5.15'
61+
compile 'com.squareup.okhttp:okhttp:2.7.5'
62+
compile 'com.squareup.okhttp:logging-interceptor:2.7.5'
63+
compile 'com.google.code.gson:gson:2.8.1'
64+
compile 'io.gsonfire:gson-fire:1.8.0'
65+
compile 'org.threeten:threetenbp:1.3.5'
66+
testCompile 'junit:junit:4.12'
67+
}
68+
69+
// bintray-release
70+
// https://github.com/novoda/bintray-release/wiki/Configuration-of-the-publish-closure
71+
publish {
72+
groupId = 'com.aspose'
73+
artifactId = 'aspose-cloud-pdf'
74+
publishVersion = '18.5.0'
75+
desc = 'Aspose.PDF for Cloud is a REST API for creating and editing PDF files. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.Pdf for Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.Pdf for Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.'
76+
licences = ['MIT']
77+
website = 'https://products.aspose.cloud/pdf/cloud'
78+
repository = 'https://github.com/aspose-pdf-cloud/aspose-pdf-cloud.git'
79+
}

build.sbt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
lazy val root = (project in file(".")).
2+
settings(
3+
organization := "com.aspose",
4+
name := "aspose-cloud-pdf",
5+
version := "18.5.0",
6+
scalaVersion := "2.11.4",
7+
scalacOptions ++= Seq("-feature"),
8+
javacOptions in compile ++= Seq("-Xlint:deprecation"),
9+
publishArtifact in (Compile, packageDoc) := false,
10+
resolvers += Resolver.mavenLocal,
11+
libraryDependencies ++= Seq(
12+
"io.swagger" % "swagger-annotations" % "1.5.15",
13+
"com.squareup.okhttp" % "okhttp" % "2.7.5",
14+
"com.squareup.okhttp" % "logging-interceptor" % "2.7.5",
15+
"com.google.code.gson" % "gson" % "2.8.1",
16+
"org.threeten" % "threetenbp" % "1.3.5" % "compile",
17+
"io.gsonfire" % "gson-fire" % "1.8.0" % "compile",
18+
"junit" % "junit" % "4.12" % "test",
19+
"com.novocode" % "junit-interface" % "0.10" % "test"
20+
)
21+
)

gradle.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Copyright (c) 2018 Aspose.Pdf for Cloud
3+
# Permission is hereby granted, free of charge, to any person obtaining a copy
4+
# of this software and associated documentation files (the "Software"), to deal
5+
# in the Software without restriction, including without limitation the rights
6+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
# copies of the Software, and to permit persons to whom the Software is
8+
# furnished to do so, subject to the following conditions:
9+
# The above copyright notice and this permission notice shall be included in all
10+
# copies or substantial portions of the Software.
11+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17+
# SOFTWARE.
18+
#

gradle/wrapper/gradle-wrapper.jar

52.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)