You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains GroupDocs.Viewer Cloud SDK for Java source code. This SDK allows you to work with GroupDocs.Viewer Cloud REST APIs in your Java applications.
[GroupDocs.Viewer Cloud SDK for Java](https://products.groupdocs.cloud/viewer/java) wraps GroupDocs.Viewer RESTful APIs so you may integrate Document Viewing features in your own apps with zero initial cost.
6
+
7
+
GroupDocs.Viewer REST API allows the developers to view & render a number of popular files formats including Word documents, Excel spreadsheets, PowerPoint presentations, CAD drawings, Visio diagram, PDF, OpenDocument formats, emails & images.
8
+
9
+
## Document Viewer Services in REST
10
+
11
+
- 90+ supported file formats.
12
+
- View documents as PDF, HTML or images.
13
+
- Render documents as raster & vector images.
14
+
- Render documents with comments & notes.
15
+
- Flip or rotate documents pages at 90, 180 or 270 degrees.
16
+
- Reorder document pages.
17
+
- Render hidden, consecutive or selected document pages.
18
+
- Watermark PDF, image or HTML output pages.
19
+
- Render with custom fonts as well as replace any missing fonts.
20
+
- Load password-protected documents.
21
+
- Extract attachment information such as attachment count & names.
22
+
- Extract document information like file format, page count, size and visibility, text coordinates, and so on.
23
+
- Integrated storage API.
24
+
25
+
Check out the [Developer's Guide](https://docs.groupdocs.cloud/viewer/developer-guide/) to know more about GroupDocs.Viewer REST API.
## Get Started with GroupDocs.Viewer Cloud SDK for Java
49
+
50
+
First create an account at [GroupDocs for Cloud](https://dashboard.groupdocs.cloud/) and get your application information. Next, follow the steps as below.
51
+
52
+
### Requirements
5
53
6
54
Building the API client library requires [Maven](https://maven.apache.org/) to be installed.
7
55
8
-
## Installation
56
+
###Installation
9
57
10
58
To install the API client library to your local Maven repository, execute:
11
59
@@ -21,9 +69,9 @@ mvn deploy
21
69
22
70
Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information.
23
71
24
-
### Maven users
72
+
####Maven
25
73
26
-
Add following repository and dependency to your project's POM
74
+
Add following repository and dependency to your project's POM.
27
75
28
76
```xml
29
77
<repository>
@@ -42,53 +90,43 @@ Add following repository and dependency to your project's POM
42
90
</dependency>
43
91
```
44
92
45
-
### Others
46
-
47
-
At first generate the JAR by executing:
93
+
#### Others
48
94
49
-
mvn package
50
-
51
-
Then manually install the following JARs:
95
+
At first generate the JAR by executing `mvn package`, then manually install the following JARs.
52
96
53
97
* target/groupdocs-viewer-cloud-20.5.jar
54
98
* target/lib/*.jar
55
99
56
-
## Getting Started
57
-
58
-
Please follow the [installation](#installation) instruction and execute the following Java code:
100
+
## Protect PDF while Rendering DOCX as PDF
59
101
60
102
```java
61
-
importcom.groupdocs.cloud.viewer.client.*;
62
-
importcom.groupdocs.cloud.viewer.model.*;
63
-
importcom.groupdocs.cloud.viewer.api.InfoApi;
64
-
65
-
importjava.util.*;
66
-
67
-
publicclassApiExample {
68
-
69
-
publicstaticvoidmain(String[] args) {
70
-
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
0 commit comments