Skip to content

Commit 6586fbe

Browse files
committed
fix libs
1 parent af58287 commit 6586fbe

File tree

4 files changed

+25
-14
lines changed

4 files changed

+25
-14
lines changed

Examples/pom.xml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<artifactId>GroupDocs.Annotation-for-Java</artifactId>
66
<version>0.0.1-SNAPSHOT</version>
77
<properties>
8-
<maven.compiler.source>7</maven.compiler.source>
9-
<maven.compiler.target>7</maven.compiler.target>
8+
<maven.compiler.source>8</maven.compiler.source>
9+
<maven.compiler.target>8</maven.compiler.target>
1010
</properties>
1111

1212
<dependencies>
@@ -23,18 +23,7 @@
2323
<dependency>
2424
<groupId>com.groupdocs</groupId>
2525
<artifactId>groupdocs-annotation</artifactId>
26-
<version>23.2</version>
27-
</dependency>
28-
<dependency>
29-
<groupId>org.tukaani</groupId>
30-
<artifactId>xz</artifactId>
31-
<version>1.9</version>
32-
</dependency>
33-
<dependency>
34-
<groupId>com.aspose</groupId>
35-
<artifactId>aspose-note</artifactId>
36-
<version>22.3</version>
37-
<classifier>jdk17</classifier>
26+
<version>23.2-20230213-0421</version>
3827
</dependency>
3928
</dependencies>
4029
<repositories>

Examples/src/main/java/com/groupdocs/annotation/examples/Constants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public class Constants {
2020
public static String ANNOTATED = getSampleFilePath("annotated.pdf");
2121
public static String ANNOTATED_IMPORT = getSampleFilePath("annotated_import.pdf");
2222

23+
public static String INPUT_DOC = getSampleFilePath("sample.docx");
24+
2325
private static String getSampleFilePath(String fileName) {
2426
return PROJECT_PATH + SamplesPath + fileName;
2527
}

Examples/src/main/java/com/groupdocs/annotation/examples/RunExamples.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ public static void main(String[] args) throws IOException {
126126

127127
// Load document from Azure
128128
// LoadDocumentFromAzure.run();
129+
130+
MinimalAnnotation.run();
129131

130132
System.out.println();
131133
System.out.println("All done.");
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.groupdocs.annotation.examples.basic_usage;
2+
3+
import com.groupdocs.annotation.Annotator;
4+
import com.groupdocs.annotation.examples.Constants;
5+
import com.groupdocs.annotation.models.Rectangle;
6+
import com.groupdocs.annotation.models.annotationmodels.ArrowAnnotation;
7+
import org.apache.commons.io.FilenameUtils;
8+
9+
public class MinimalAnnotation {
10+
public static void run() {
11+
final Annotator annotator = new Annotator(Constants.INPUT_DOC);
12+
String outputPath = Constants.getOutputFilePath("MinimalAnnotation", FilenameUtils.getExtension(Constants.INPUT_DOC));
13+
final ArrowAnnotation arrowAnnotation = new ArrowAnnotation();
14+
arrowAnnotation.setBox(new Rectangle(100, 100, 200, 200));
15+
annotator.add(arrowAnnotation);
16+
annotator.save(outputPath);
17+
}
18+
}

0 commit comments

Comments
 (0)