From 170b188bc07175e94cbfce6848070584482e1aad Mon Sep 17 00:00:00 2001 From: SemenchenkoA Date: Mon, 17 Apr 2023 18:48:13 +0300 Subject: [PATCH] prepare-2304 --- Demos/Dropwizard/client/package.json | 2 +- Demos/Dropwizard/pom.xml | 2 +- Demos/Spring/client/package.json | 2 +- Demos/Spring/pom.xml | 2 +- Examples/Resources/SampleFiles/input.xlsx | Bin 0 -> 26899 bytes Examples/pom.xml | 2 +- .../annotation/examples/Constants.java | 5 +- .../annotation/examples/RunExamples.java | 22 ++++--- .../GenerateDocumentPagesPreview.java | 43 ++++++------- .../LoadPasswordProtectedDocuments.java | 2 +- .../LoadDocumentFromFtp.java | 2 +- .../LoadDocumentFromLocalDisk.java | 4 +- .../LoadDocumentFromStream.java | 4 +- .../LoadDocumentFromUrl.java | 2 +- .../saving/FilteringAnnotationTypes.java | 21 +++---- .../SavingOnlyPagesWithAnnotations.java | 43 ++++++------- .../saving/SavingSpecificPageRange.java | 20 +++--- .../examples/basic_usage/AddReplies.java | 4 +- .../examples/basic_usage/AddUserRole.java | 58 ++++++++++++++++++ .../ExtractAnnotationsFromDocument.java | 26 ++------ .../examples/basic_usage/GetFileInfo.java | 27 ++++---- .../RemoveAnnotationFromDocument.java | 2 +- .../examples/basic_usage/RemoveReplies.java | 2 +- .../basic_usage/RemoveRepliesById.java | 2 +- .../basic_usage/RemoveRepliesByUserName.java | 2 +- .../basic_usage/UpdateAnnotation.java | 4 +- .../AddAreaAnnotation.java | 6 +- .../AddArrowAnnotation.java | 6 +- .../AddDistanceAnnotation.java | 6 +- .../AddEllipseAnnotation.java | 6 +- .../AddLinkAnnotation.java | 4 +- .../AddPointAnnotation.java | 4 +- .../AddPolylineAnnotation.java | 4 +- .../AddResourcesRedactionAnnotation.java | 4 +- .../AddTextFieldAnnotation.java | 4 +- .../AddTextHighlightAnnotation.java | 8 +-- .../AddTextRedactionAnnotation.java | 4 +- .../AddTextReplacementAnnotation.java | 9 +-- .../AddTextStrikeoutAnnotation.java | 4 +- .../AddTextUnderlineAnnotation.java | 4 +- .../AddWatermarkAnnotation.java | 4 +- 41 files changed, 209 insertions(+), 173 deletions(-) create mode 100644 Examples/Resources/SampleFiles/input.xlsx create mode 100644 Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/AddUserRole.java diff --git a/Demos/Dropwizard/client/package.json b/Demos/Dropwizard/client/package.json index be66aa3..8d291cf 100644 --- a/Demos/Dropwizard/client/package.json +++ b/Demos/Dropwizard/client/package.json @@ -36,7 +36,7 @@ "@angular/platform-browser": "^8.2.4", "@angular/platform-browser-dynamic": "^8.2.4", "@angular/router": "^8.2.4", - "@groupdocs.examples.angular/annotation": "^0.8.54", + "@groupdocs.examples.angular/annotation": "^0.8.98", "@nrwl/angular": "^8.12.11", "common-components": "^1.0.5", "core-js": "^2.6.11", diff --git a/Demos/Dropwizard/pom.xml b/Demos/Dropwizard/pom.xml index 96c1329..39a4602 100644 --- a/Demos/Dropwizard/pom.xml +++ b/Demos/Dropwizard/pom.xml @@ -81,7 +81,7 @@ com.groupdocs groupdocs-annotation - 23.2 + 23.4 javax.xml.bind diff --git a/Demos/Spring/client/package.json b/Demos/Spring/client/package.json index c71927d..8d291cf 100644 --- a/Demos/Spring/client/package.json +++ b/Demos/Spring/client/package.json @@ -36,7 +36,7 @@ "@angular/platform-browser": "^8.2.4", "@angular/platform-browser-dynamic": "^8.2.4", "@angular/router": "^8.2.4", - "@groupdocs.examples.angular/annotation": "^0.8.70", + "@groupdocs.examples.angular/annotation": "^0.8.98", "@nrwl/angular": "^8.12.11", "common-components": "^1.0.5", "core-js": "^2.6.11", diff --git a/Demos/Spring/pom.xml b/Demos/Spring/pom.xml index 14f93aa..632cb7e 100644 --- a/Demos/Spring/pom.xml +++ b/Demos/Spring/pom.xml @@ -131,7 +131,7 @@ com.groupdocs groupdocs-annotation - 23.2 + 23.4 com.google.guava diff --git a/Examples/Resources/SampleFiles/input.xlsx b/Examples/Resources/SampleFiles/input.xlsx new file mode 100644 index 0000000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cgb;$}2+Jx)Mw)2JqO#7qdi`Aza!|NA!10+Ekmvh46h{8R>4L zxbf}Z05$222Ff@5XX_C*KxnTkRb>k9$gF=Dsxs-w zT)2nJe2?RlCko$})ffHiE+;E9Oj;P8D7ZMQ-V&GbP)PdQ36;Jf_UNQy1rGvZc)K$ zJ^2;nteK8O63A^lqT#DAHa|yS+QYxzd~E-eQeQ&w38T!jx3OI=G$|exa?B*puhu`e zb9+eYM6JkN>8O3#>g!GivHfTbn5ZB3 zGM(7E@qB$j%w0maV;LL3Ma)Ry4+ayfD8M7IK?9cm?Y|D7Z~W!;5B~W8764nZ{_f~m zP}e~L|D=9BECjX~@ExQG4elS628JcTmdCv#oS^@O@OO&k!XjYnx85O|F#n49Th&}) zA+ReU?;sP8e!AmtuZx5wz^<;lBP_H0B*3QM{afla>>9g2w_!=Jt0L}5$y~pa{=pgv zSQu;$`5o*d?@!oYy1u(k@2_D5Y$o}i+pr|qEY&;GEdOsV`Zpc^&pgFH+dp$wVF|D~ zk#_{J;O~a}m#_Yxq(6zUB-n|#J5smY@1#2y{nyiSurS!Ei#yo0;{Vk}|Ms)~oVb8( zVM(y!;~l9;^(X1?Ns+LJhaFqq9iCq2*Wv%kNE4Or Ub@V?}3<9|OsBm!KjQ`mB9}Q`T^Z)<= literal 0 HcmV?d00001 diff --git a/Examples/pom.xml b/Examples/pom.xml index e0b3311..d639544 100644 --- a/Examples/pom.xml +++ b/Examples/pom.xml @@ -23,7 +23,7 @@ com.groupdocs groupdocs-annotation - 23.2 + 23.4 diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/Constants.java b/Examples/src/main/java/com/groupdocs/annotation/examples/Constants.java index 34e6eb7..b7aa5bf 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/Constants.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/Constants.java @@ -1,14 +1,13 @@ package com.groupdocs.annotation.examples; public class Constants { - public static String PROJECT_PATH = System.getProperty("user.dir"); public static final String LicensePath = "C:\\Conholdate.Total.Product.Family.lic";//GroupDocs.Total.Java.lic"; public static final String SamplesPath = "\\Resources\\SampleFiles\\"; public static final String OutputPath = "\\Resources\\Output\\"; - public static String INPUT = getSampleFilePath("input.pdf"); + public static String INPUT_PDF = getSampleFilePath("input.pdf"); public static String CLEAR = getSampleFilePath("clear.pdf"); public static String ANNOTATED_BIG = getSampleFilePath("annotated_big.pdf"); public static String ANNOTATED_WITH_REPLIES = getSampleFilePath("annotated_with_replies.pdf"); @@ -23,6 +22,8 @@ public class Constants { public static String INPUT_DOC = getSampleFilePath("sample.docx"); public static String INPUT_NEW = getSampleFilePath("sampleNew.pdf"); + public static String INPUT_CELL = getSampleFilePath("input.xlsx"); + private static String getSampleFilePath(String fileName) { return PROJECT_PATH + SamplesPath + fileName; } diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/RunExamples.java b/Examples/src/main/java/com/groupdocs/annotation/examples/RunExamples.java index ab7f377..b29281f 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/RunExamples.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/RunExamples.java @@ -13,7 +13,7 @@ public class RunExamples { public static void main(String[] args) throws IOException { - System.out.println("Open RunExamples.cs. \nIn Main() method uncomment the example that you want to run."); + System.out.println("Open RunExamples.java. \nIn Main() method uncomment the example that you want to run."); System.out.println("====================================================="); //NOTE: Please uncomment the example you want to try out @@ -26,25 +26,31 @@ public static void main(String[] args) throws IOException { GetSupportedFileFormats.run(); // Get file info - GetFileInfo.run(); + GetFileInfo.run(Constants.INPUT_PDF); + GetFileInfo.run(Constants.INPUT_DOC); + GetFileInfo.run(Constants.INPUT_CELL); // Extract annotations from document -// ExtractAnnotationsFromDocument.run(); + ExtractAnnotationsFromDocument.run(Constants.INPUT_PDF); +// ExtractAnnotationsFromDocument.run(Constants.INPUT_DOC); +// ExtractAnnotationsFromDocument.run(Constants.INPUT_CELL); // Remove annotation from document // RemoveAnnotationFromDocument.run(); // Generate document pages preview - GenerateDocumentPagesPreview.run(); + GenerateDocumentPagesPreview.run(Constants.INPUT_PDF); +// GenerateDocumentPagesPreview.run(Constants.INPUT_DOC); +// GenerateDocumentPagesPreview.run(Constants.INPUT_CELL); // Saving specific page range - SavingSpecificPageRange.run(); + SavingSpecificPageRange.run(Constants.INPUT_PDF); // Saving only pages with annotations - SavingOnlyPagesWithAnnotations.run(); + SavingOnlyPagesWithAnnotations.run(Constants.INPUT_PDF); // Filtering annotation types -// FilteringAnnotationTypes.run();// - Unsupported exception + FilteringAnnotationTypes.run(Constants.INPUT_PDF); // Add area annotation AddAreaAnnotation.run(); @@ -128,6 +134,8 @@ public static void main(String[] args) throws IOException { // LoadDocumentFromAzure.run(); MinimalAnnotation.run(); + + AddUserRole.run(); System.out.println(); System.out.println("All done."); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/GenerateDocumentPagesPreview.java b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/GenerateDocumentPagesPreview.java index 1e42530..0c0ec10 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/GenerateDocumentPagesPreview.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/GenerateDocumentPagesPreview.java @@ -17,32 +17,27 @@ */ public class GenerateDocumentPagesPreview { - public static void run() { - final Annotator annotator = new Annotator(Constants.INPUT_NEW); - - PreviewOptions previewOptions = new PreviewOptions(new CreatePageStream() { - @Override - public OutputStream invoke(int pageNumber) { - try { - //String OutputPath = "//Resources//Output/"; - String fileName = Constants.getOutputFilePath("GenerateDocumentPagesPreview_"+pageNumber, "png");//OutputPath + "GenerateDocumentPagesPreview_"+pageNumber+".png"; - OutputStream result = new FileOutputStream(fileName); - return result; - } catch (Exception ex) { - throw new GroupDocsException(ex); + public static void run(String inputFile) { + try(final Annotator annotator = new Annotator(inputFile)) { + PreviewOptions previewOptions = new PreviewOptions(new CreatePageStream() { + @Override + public OutputStream invoke(int pageNumber) { + try { + String fileName = Constants.getOutputFilePath("GenerateDocumentPagesPreview" + "_" + pageNumber, "png"); + OutputStream result = new FileOutputStream(fileName); + return result; + } catch (Exception ex) { + throw new GroupDocsException(ex); + } } - } - }); + }); - previewOptions.setResolution(50); + previewOptions.setResolution(85); + previewOptions.setPreviewFormat(PreviewFormats.PNG); + previewOptions.setPageNumbers(new int[]{1, 2}); + annotator.getDocument().generatePreview(previewOptions); - previewOptions.setPreviewFormat(PreviewFormats.PNG); - - previewOptions.setPageNumbers(new int[]{1, 2}); - annotator.getDocument().generatePreview(previewOptions); - - annotator.dispose(); - - System.out.println("\nDocument previews generated successfully.\nCheck output in " + Constants.OutputPath); + System.out.println("\nDocument previews generated successfully.\nCheck output in " + Constants.OutputPath); + } } } diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/LoadPasswordProtectedDocuments.java b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/LoadPasswordProtectedDocuments.java index 2b2bcb8..15ef198 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/LoadPasswordProtectedDocuments.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/LoadPasswordProtectedDocuments.java @@ -16,7 +16,7 @@ public class LoadPasswordProtectedDocuments { public static void run() { - String outputPath = Constants.getOutputFilePath("LoadPasswordProtectedDocuments", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("LoadPasswordProtectedDocuments", FilenameUtils.getExtension(Constants.INPUT_PDF)); LoadOptions loadOptions = new LoadOptions(); loadOptions.setPassword("1234"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromFtp.java b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromFtp.java index 3b15400..fe5a388 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromFtp.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromFtp.java @@ -19,7 +19,7 @@ public class LoadDocumentFromFtp { public static void run() { try { - String outputPath = Constants.getOutputFilePath("LoadDocumentFromFtp", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("LoadDocumentFromFtp", FilenameUtils.getExtension(Constants.INPUT_PDF)); String filePath = "sample.pdf"; String server = "localhost"; diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromLocalDisk.java b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromLocalDisk.java index 98e096f..ac38a18 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromLocalDisk.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromLocalDisk.java @@ -14,9 +14,9 @@ public class LoadDocumentFromLocalDisk { public static void run() { - String outputPath = Constants.getOutputFilePath("LoadDocumentFromLocalDisk", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("LoadDocumentFromLocalDisk", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); AreaAnnotation area = new AreaAnnotation(); area.setBox(new Rectangle(100, 100, 100, 100)); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromStream.java b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromStream.java index 9c6c741..917f2fe 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromStream.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromStream.java @@ -17,9 +17,9 @@ public class LoadDocumentFromStream { public static void run() { try { - String outputPath = Constants.getOutputFilePath("LoadDocumentFromStream", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("LoadDocumentFromStream", FilenameUtils.getExtension(Constants.INPUT_PDF)); - InputStream stream = new FileInputStream(Constants.INPUT); + InputStream stream = new FileInputStream(Constants.INPUT_PDF); final Annotator annotator = new Annotator(stream); AreaAnnotation area = new AreaAnnotation(); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromUrl.java b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromUrl.java index 6ec23f6..4f76e68 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromUrl.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/loading/loading_documents_from_different_sources/LoadDocumentFromUrl.java @@ -16,7 +16,7 @@ public class LoadDocumentFromUrl { public static void run() { try { - String outputPath = Constants.getOutputFilePath("LoadDocumentFromUrl", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("LoadDocumentFromUrl", FilenameUtils.getExtension(Constants.INPUT_PDF)); String url = "https://github.com/groupdocs-annotation/GroupDocs.Annotation-for-Java/raw/api-v2/Examples/Resources/SampleFiles/input.pdf?raw=true"; final Annotator annotator = new Annotator(new URL(url).openStream()); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/FilteringAnnotationTypes.java b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/FilteringAnnotationTypes.java index 5a599a9..c21fd85 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/FilteringAnnotationTypes.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/FilteringAnnotationTypes.java @@ -18,32 +18,29 @@ *

*/ public class FilteringAnnotationTypes { + public static void run(String fileName) { + String outputPath = Constants.getOutputFilePath("FilteringAnnotationTypes", FilenameUtils.getExtension(fileName)); - public static void run() { - String outputPath = Constants.getOutputFilePath("FilteringAnnotationTypes", FilenameUtils.getExtension(Constants.INPUT)); - - final Annotator annotator = new Annotator(Constants.ANNOTATED_BIG); - try { + try(final Annotator annotator = new Annotator(fileName)) { AreaAnnotation area = new AreaAnnotation(); area.setBox(new Rectangle(100, 100, 100, 100)); area.setBackgroundColor(65535); area.setPageNumber(1); + EllipseAnnotation ellipse = new EllipseAnnotation(); ellipse.setBox(new Rectangle(100, 100, 100, 100)); ellipse.setBackgroundColor(123456); - ellipse.setPageNumber(4); - List annotations = new ArrayList(); + ellipse.setPageNumber(2); + + List annotations = new ArrayList<>(); annotations.add(area); annotations.add(ellipse); annotator.add(annotations); SaveOptions saveOptions = new SaveOptions(); saveOptions.setAnnotationTypes(AnnotationType.ELLIPSE); annotator.save(outputPath, saveOptions); - } finally { - if (annotator != null) { - annotator.dispose(); - } + + System.out.println("\nDocument saved successfully.\nCheck output in " + outputPath); } - System.out.println("\nDocument saved successfully.\nCheck output in " + outputPath); } } diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/SavingOnlyPagesWithAnnotations.java b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/SavingOnlyPagesWithAnnotations.java index b8943fc..e5bcd21 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/SavingOnlyPagesWithAnnotations.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/SavingOnlyPagesWithAnnotations.java @@ -17,30 +17,27 @@ *

*/ public class SavingOnlyPagesWithAnnotations { + public static void run(String fileName) { + String outputPath = Constants.getOutputFilePath("SavingOnlyPagesWithAnnotations", FilenameUtils.getExtension(fileName)); - public static void run() { - String outputPath = Constants.getOutputFilePath("SavingOnlyPagesWithAnnotations", FilenameUtils.getExtension(Constants.INPUT)); + try(final Annotator annotator = new Annotator(fileName)) { + AreaAnnotation area = new AreaAnnotation(); + area.setBox(new Rectangle(100, 100, 100, 100)); + area.setBackgroundColor(65535); + area.setPageNumber(1); + EllipseAnnotation ellipse = new EllipseAnnotation(); + ellipse.setBox(new Rectangle(100, 100, 100, 100)); + ellipse.setBackgroundColor(123456); + ellipse.setPageNumber(2); + List annotations = new ArrayList(); + annotations.add(area); + annotations.add(ellipse); + annotator.add(annotations); + SaveOptions saveOptions = new SaveOptions(); + saveOptions.setOnlyAnnotatedPages(true); + annotator.save(outputPath, saveOptions); - final Annotator annotator = new Annotator(Constants.INPUT); - - AreaAnnotation area = new AreaAnnotation(); - area.setBox(new Rectangle(100, 100, 100, 100)); - area.setBackgroundColor(65535); - area.setPageNumber(1); - EllipseAnnotation ellipse = new EllipseAnnotation(); - ellipse.setBox(new Rectangle(100, 100, 100, 100)); - ellipse.setBackgroundColor(123456); - ellipse.setPageNumber(2); - List annotations = new ArrayList(); - annotations.add(area); - annotations.add(ellipse); - annotator.add(annotations); - SaveOptions saveOptions = new SaveOptions(); - saveOptions.setOnlyAnnotatedPages(true); - annotator.save(outputPath, saveOptions); - - annotator.dispose(); - - System.out.println("\nDocument saved successfully.\nCheck output in " + outputPath); + System.out.println("\nDocument saved successfully.\nCheck output in " + outputPath); + } } } diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/SavingSpecificPageRange.java b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/SavingSpecificPageRange.java index 2a5ca33..d549b35 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/SavingSpecificPageRange.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/advanced_usage/saving/SavingSpecificPageRange.java @@ -12,18 +12,16 @@ */ public class SavingSpecificPageRange { - public static void run() { - String outputPath = Constants.getOutputFilePath("SavingSpecificPageRange", FilenameUtils.getExtension(Constants.INPUT)); + public static void run(String inputFile) { + String outputPath = Constants.getOutputFilePath("SavingSpecificPageRange", FilenameUtils.getExtension(inputFile)); - final Annotator annotator = new Annotator(Constants.INPUT); + try(final Annotator annotator = new Annotator(inputFile)) { + SaveOptions saveOptions = new SaveOptions(); + saveOptions.setFirstPage(2); + saveOptions.setLastPage(4); + annotator.save(outputPath, saveOptions); - SaveOptions saveOptions = new SaveOptions(); - saveOptions.setFirstPage(2); - saveOptions.setLastPage(4); - annotator.save(outputPath, saveOptions); - - annotator.dispose(); - - System.out.println("\nDocument saved successfully.\nCheck output in {outputPath}."); + System.out.println("\nDocument saved successfully.\nCheck output in {outputPath}."); + } } } diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/AddReplies.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/AddReplies.java index f789564..c8a1159 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/AddReplies.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/AddReplies.java @@ -19,9 +19,9 @@ public class AddReplies { public static void run() { - String outputPath = Constants.getOutputFilePath("AddReplies", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddReplies", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); User user1 = new User(); user1.setId(1); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/AddUserRole.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/AddUserRole.java new file mode 100644 index 0000000..5b66329 --- /dev/null +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/AddUserRole.java @@ -0,0 +1,58 @@ +package com.groupdocs.annotation.examples.basic_usage; + +import com.groupdocs.annotation.Annotator; +import com.groupdocs.annotation.examples.Constants; + +import com.groupdocs.annotation.models.*; +import com.groupdocs.annotation.models.annotationmodels.AreaAnnotation; +import org.apache.commons.io.FilenameUtils; + +import java.util.ArrayList; +import java.util.Calendar; + +/** + *

+ * This example demonstrates adding user role to reply. + *

+ */ +public class AddUserRole { + public static void run() { + String outputPath = Constants.getOutputFilePath("AddUserRole", FilenameUtils.getExtension(Constants.INPUT_PDF)); + + final Annotator annotator = new Annotator(Constants.INPUT_PDF); + + Reply reply1 = new Reply(); + reply1.setComment("This comment will be applied"); + reply1.setRepliedOn(Calendar.getInstance().getTime()); + User user1 = new User(1, "Reviewer", Role.Editor); + reply1.setUser(user1); + + Reply reply2 = new Reply(); + reply2.setComment("This comment will NOT be applied"); + reply2.setRepliedOn(Calendar.getInstance().getTime()); + User user2 = new User(1, "Member", Role.Viewer); + reply2.setUser(user2); + + java.util.List replies = new ArrayList<>(); + replies.add(reply1); + replies.add(reply2); + + AreaAnnotation area = new AreaAnnotation(); + area.setBackgroundColor(65535); + area.setBox(new Rectangle(100, 100, 100, 100)); + area.setCreatedOn(Calendar.getInstance().getTime()); + area.setMessage("This is area annotation"); + area.setOpacity(0.7); + area.setPageNumber(0); + area.setPenColor(65535); + area.setPenStyle(PenStyle.DOT); + area.setPenWidth((byte) 3); + area.setReplies(replies); + annotator.add(area); + annotator.save(outputPath); + + annotator.dispose(); + + System.out.println("\nDocument saved successfully.\nCheck output in " + outputPath); + } +} diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/ExtractAnnotationsFromDocument.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/ExtractAnnotationsFromDocument.java index dfba9ed..134b549 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/ExtractAnnotationsFromDocument.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/ExtractAnnotationsFromDocument.java @@ -1,12 +1,9 @@ package com.groupdocs.annotation.examples.basic_usage; import com.groupdocs.annotation.Annotator; -import com.groupdocs.annotation.examples.Constants; import com.groupdocs.annotation.models.annotationmodels.AnnotationBase; -import com.groupdocs.annotation.options.LoadOptions; import java.io.FileInputStream; -import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Iterator; @@ -18,30 +15,19 @@ *

*/ public class ExtractAnnotationsFromDocument { - - public static void run() { - //LoadOptions loadOptions = new LoadOptions(); - - try (final InputStream inputStream = new FileInputStream(Constants.ANNOTATED_IMPORT); - final Annotator annotator = new Annotator(inputStream/*, loadOptions*/)){ + public static void run(String inputFile) { + try (final InputStream inputStream = new FileInputStream(inputFile); + final Annotator annotator = new Annotator(inputStream)){ List annotations = annotator.get(); - Iterator items = (annotations).iterator(); + Iterator items = (annotations).iterator(); while (items.hasNext()) { - AnnotationBase annotation = (AnnotationBase) items.next(); + AnnotationBase annotation = items.next(); System.out.println(annotation.getMessage()); } System.out.println("Annotations extracted successfully."); - - annotator.dispose(); }catch (IOException e) { e.printStackTrace(); - } /*catch (NoSuchFieldException e) { - e.printStackTrace(); - } catch (IllegalAccessException e) { - e.printStackTrace(); - }*/ - - + } } } diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/GetFileInfo.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/GetFileInfo.java index f208237..13c86a3 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/GetFileInfo.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/GetFileInfo.java @@ -2,7 +2,6 @@ import com.groupdocs.annotation.Annotator; import com.groupdocs.annotation.IDocumentInfo; -import com.groupdocs.annotation.examples.Constants; import java.io.IOException; @@ -12,22 +11,18 @@ *

*/ public class GetFileInfo { + public static void run(String inputFile) { + try(final Annotator annotator = new Annotator(inputFile)) { + IDocumentInfo info = null; + try { + info = annotator.getDocument().getDocumentInfo(); + } catch (IOException e) { + e.printStackTrace(); + } + System.out.println( + "\nFile type: " + info.getFileType() + "\nNumber of pages: " + info.getPageCount() + "\nDocument size: " + info.getSize() + " bytes"); - public static void run() { - final Annotator annotator = new Annotator(Constants.INPUT); - - IDocumentInfo info = null; - try { - info = annotator.getDocument().getDocumentInfo(); - } catch (IOException e) { - e.printStackTrace(); + System.out.println("\nDocument info extracted successfully."); } - System.out.println( - "\nFile type: " + info.getFileType() - + "\nNumber of pages: " + info.getPageCount() - + "\nDocument size: " + info.getSize() + " bytes"); - - annotator.dispose(); - System.out.println("\nDocument info extracted successfully."); } } diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveAnnotationFromDocument.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveAnnotationFromDocument.java index aea9611..89dc99f 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveAnnotationFromDocument.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveAnnotationFromDocument.java @@ -14,7 +14,7 @@ public class RemoveAnnotationFromDocument { public static void run() { - String outputPath = Constants.getOutputFilePath("RemoveAnnotationFromDocument", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("RemoveAnnotationFromDocument", FilenameUtils.getExtension(Constants.INPUT_PDF)); final Annotator annotator = new Annotator(Constants.ANNOTATED_AREA_REPLIES_5); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveReplies.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveReplies.java index 87a2b64..cf9cce0 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveReplies.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveReplies.java @@ -15,7 +15,7 @@ public class RemoveReplies { public static void run() { - String outputPath = Constants.getOutputFilePath("RemoveRepliesById", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("RemoveRepliesById", FilenameUtils.getExtension(Constants.INPUT_PDF)); LoadOptions loadOptions = new LoadOptions(); // NOTE: Input document already contain annotations with replies diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveRepliesById.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveRepliesById.java index d7e2407..e379832 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveRepliesById.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveRepliesById.java @@ -16,7 +16,7 @@ public class RemoveRepliesById { public static void run() { - String outputPath = Constants.getOutputFilePath("RemoveRepliesById", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("RemoveRepliesById", FilenameUtils.getExtension(Constants.INPUT_PDF)); LoadOptions loadOptions = new LoadOptions(); // NOTE: Input document already contain annotations with replies diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveRepliesByUserName.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveRepliesByUserName.java index 183098d..1b3f504 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveRepliesByUserName.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/RemoveRepliesByUserName.java @@ -16,7 +16,7 @@ public class RemoveRepliesByUserName { public static void run() { - String outputPath = Constants.getOutputFilePath("RemoveRepliesByUserName", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("RemoveRepliesByUserName", FilenameUtils.getExtension(Constants.INPUT_PDF)); LoadOptions loadOptions = new LoadOptions(); // NOTE: Input document already contain annotations with replies diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/UpdateAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/UpdateAnnotation.java index 3000c99..fbd02f2 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/UpdateAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/UpdateAnnotation.java @@ -19,9 +19,9 @@ public class UpdateAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("UpdateAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("UpdateAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("Original first comment"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddAreaAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddAreaAnnotation.java index 4156c97..9cb5ea4 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddAreaAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddAreaAnnotation.java @@ -26,13 +26,13 @@ public static void run() { reply2.setComment("Second comment"); reply2.setRepliedOn(Calendar.getInstance().getTime()); - java.util.List replies = new ArrayList(); + java.util.List replies = new ArrayList<>(); replies.add(reply1); replies.add(reply2); - String outputPath = Constants.getOutputFilePath("AddAreaAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddAreaAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); AreaAnnotation area = new AreaAnnotation(); area.setBackgroundColor(65535); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddArrowAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddArrowAnnotation.java index a8f30f0..764727a 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddArrowAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddArrowAnnotation.java @@ -18,9 +18,9 @@ public class AddArrowAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddArrowAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddArrowAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); @@ -30,7 +30,7 @@ public static void run() { reply2.setComment("Second comment"); reply2.setRepliedOn(Calendar.getInstance().getTime()); - java.util.List replies = new ArrayList(); + java.util.List replies = new ArrayList<>(); replies.add(reply1); replies.add(reply2); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddDistanceAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddDistanceAnnotation.java index 498721d..49a9ed2 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddDistanceAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddDistanceAnnotation.java @@ -18,9 +18,9 @@ public class AddDistanceAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddDistanceAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddDistanceAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); @@ -30,7 +30,7 @@ public static void run() { reply2.setComment("Second comment"); reply2.setRepliedOn(Calendar.getInstance().getTime()); - java.util.List replies = new ArrayList(); + java.util.List replies = new ArrayList<>(); replies.add(reply1); replies.add(reply2); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddEllipseAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddEllipseAnnotation.java index 2f346bd..6ae2682 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddEllipseAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddEllipseAnnotation.java @@ -18,9 +18,9 @@ public class AddEllipseAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddLinkAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddLinkAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); @@ -30,7 +30,7 @@ public static void run() { reply2.setComment("Second comment"); reply2.setRepliedOn(Calendar.getInstance().getTime()); - java.util.List replies = new ArrayList(); + java.util.List replies = new ArrayList<>(); replies.add(reply1); replies.add(reply2); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddLinkAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddLinkAnnotation.java index 7b15a8d..2d63be4 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddLinkAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddLinkAnnotation.java @@ -18,9 +18,9 @@ public class AddLinkAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddLinkAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddLinkAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddPointAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddPointAnnotation.java index 3b22324..11f4778 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddPointAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddPointAnnotation.java @@ -17,9 +17,9 @@ public class AddPointAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddPointAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddPointAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddPolylineAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddPolylineAnnotation.java index c29e518..d375ab3 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddPolylineAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddPolylineAnnotation.java @@ -18,9 +18,9 @@ public class AddPolylineAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddPolylineAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddPolylineAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddResourcesRedactionAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddResourcesRedactionAnnotation.java index c2d5ee3..85212bf 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddResourcesRedactionAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddResourcesRedactionAnnotation.java @@ -17,9 +17,9 @@ public class AddResourcesRedactionAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddResourcesRedactionAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddResourcesRedactionAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextFieldAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextFieldAnnotation.java index 2b791d3..f079230 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextFieldAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextFieldAnnotation.java @@ -18,9 +18,9 @@ public class AddTextFieldAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddTextFieldAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddTextFieldAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextHighlightAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextHighlightAnnotation.java index c85a441..08a8816 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextHighlightAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextHighlightAnnotation.java @@ -18,9 +18,9 @@ public class AddTextHighlightAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddTextHighlightAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddTextHighlightAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); @@ -30,7 +30,7 @@ public static void run() { reply2.setComment("Second comment"); reply2.setRepliedOn(Calendar.getInstance().getTime()); - java.util.List replies = new ArrayList(); + java.util.List replies = new ArrayList<>(); replies.add(reply1); replies.add(reply2); @@ -39,7 +39,7 @@ public static void run() { Point point3 = new Point(80, 650); Point point4 = new Point(240, 650); - List points = new ArrayList(); + List points = new ArrayList<>(); points.add(point1); points.add(point2); points.add(point3); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextRedactionAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextRedactionAnnotation.java index 2597cdf..e2bb5c2 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextRedactionAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextRedactionAnnotation.java @@ -18,9 +18,9 @@ public class AddTextRedactionAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddTextStrikeoutAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddTextStrikeoutAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextReplacementAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextReplacementAnnotation.java index 802c136..a2b8e23 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextReplacementAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextReplacementAnnotation.java @@ -18,9 +18,9 @@ public class AddTextReplacementAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddTextStrikeoutAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddTextReplacementAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); @@ -30,7 +30,7 @@ public static void run() { reply2.setComment("Second comment"); reply2.setRepliedOn(Calendar.getInstance().getTime()); - java.util.List replies = new ArrayList(); + java.util.List replies = new ArrayList<>(); replies.add(reply1); replies.add(reply2); @@ -39,7 +39,7 @@ public static void run() { Point point3 = new Point(80, 650); Point point4 = new Point(240, 650); - List points = new ArrayList(); + List points = new ArrayList<>(); points.add(point1); points.add(point2); points.add(point3); @@ -48,6 +48,7 @@ public static void run() { ReplacementAnnotation replacement = new ReplacementAnnotation(); replacement.setCreatedOn(Calendar.getInstance().getTime()); replacement.setFontColor(65535); + replacement.setFontSize(8.); replacement.setMessage("This is replacement annotation"); replacement.setOpacity(0.7); replacement.setPageNumber(0); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextStrikeoutAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextStrikeoutAnnotation.java index 57df593..8aea48f 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextStrikeoutAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextStrikeoutAnnotation.java @@ -18,9 +18,9 @@ public class AddTextStrikeoutAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddTextStrikeoutAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddTextStrikeoutAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextUnderlineAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextUnderlineAnnotation.java index 533292c..0b78b39 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextUnderlineAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddTextUnderlineAnnotation.java @@ -24,9 +24,9 @@ public class AddTextUnderlineAnnotation { public static void run() { //String outputPath = Constants.getOutputFilePath("sample", "docx"); - String outputPath = Constants.getOutputFilePath("AddTextUnderlineAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddTextUnderlineAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - Annotator annotator = new Annotator(/*Constants.PROJECT_PATH + Constants.SamplesPath + "sample.docx"*/Constants.INPUT); + Annotator annotator = new Annotator(/*Constants.PROJECT_PATH + Constants.SamplesPath + "sample.docx"*/Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment"); diff --git a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddWatermarkAnnotation.java b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddWatermarkAnnotation.java index 68c3c6c..bb8ed66 100644 --- a/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddWatermarkAnnotation.java +++ b/Examples/src/main/java/com/groupdocs/annotation/examples/basic_usage/add_annotation_to_the_document/AddWatermarkAnnotation.java @@ -17,9 +17,9 @@ public class AddWatermarkAnnotation { public static void run() { - String outputPath = Constants.getOutputFilePath("AddWatermarkAnnotation", FilenameUtils.getExtension(Constants.INPUT)); + String outputPath = Constants.getOutputFilePath("AddWatermarkAnnotation", FilenameUtils.getExtension(Constants.INPUT_PDF)); - final Annotator annotator = new Annotator(Constants.INPUT); + final Annotator annotator = new Annotator(Constants.INPUT_PDF); Reply reply1 = new Reply(); reply1.setComment("First comment");