diff --git a/pdfocr-api/pom.xml b/pdfocr-api/pom.xml index 080ff54..9497996 100644 --- a/pdfocr-api/pom.xml +++ b/pdfocr-api/pom.xml @@ -5,7 +5,7 @@ com.itextpdf pdfocr-root - 2.0.1 + 2.0.2 pdfocr-api diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/AbstractPdfOcrEventHelper.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/AbstractPdfOcrEventHelper.java index 19e8ed5..6ca7f79 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/AbstractPdfOcrEventHelper.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/AbstractPdfOcrEventHelper.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IImageRotationHandler.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IImageRotationHandler.java index 2a96d6a..fc8b8ed 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IImageRotationHandler.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IImageRotationHandler.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IOcrEngine.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IOcrEngine.java index 9ac0333..57ac708 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IOcrEngine.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IOcrEngine.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IProductAware.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IProductAware.java index fb3e43d..820dbff 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IProductAware.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/IProductAware.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrEngineProperties.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrEngineProperties.java index 32d6237..04f729e 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrEngineProperties.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrEngineProperties.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -26,6 +26,9 @@ This file is part of the iText (R) project. import java.util.Collections; import java.util.List; +/** + * This class contains additional properties for ocr engine. + */ public class OcrEngineProperties { /** diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreator.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreator.java index f4f6e55..6339b53 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreator.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreator.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreatorEventHelper.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreatorEventHelper.java index 649e8fe..19df9b6 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreatorEventHelper.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreatorEventHelper.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreatorProperties.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreatorProperties.java index 7b77692..947bac8 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreatorProperties.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrPdfCreatorProperties.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrProcessContext.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrProcessContext.java index f28a54e..a06ec07 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrProcessContext.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/OcrProcessContext.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfCreatorUtil.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfCreatorUtil.java index 132ae5e..8cbdde7 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfCreatorUtil.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfCreatorUtil.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -174,7 +174,6 @@ static com.itextpdf.kernel.geom.Point calculateImageCoordinates( * @return list of {@link com.itextpdf.io.image.ImageData} objects * (more than one element in the list if it is a multipage tiff) * @throws PdfOcrException if error occurred during reading a file - * @throws IOException if error occurred during reading a file */ static List getImageData(final File inputImage, IImageRotationHandler imageRotationHandler) throws PdfOcrException { diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfOcrFontProvider.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfOcrFontProvider.java index 621370e..2944bbf 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfOcrFontProvider.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfOcrFontProvider.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -34,6 +34,9 @@ This file is part of the iText (R) project. import java.io.InputStream; import org.slf4j.LoggerFactory; +/** + * {@link FontProvider} extension for ocr engine. + */ public class PdfOcrFontProvider extends FontProvider { /** @@ -55,8 +58,12 @@ public PdfOcrFontProvider() { this.addFont(getDefaultFont(), PdfEncodings.IDENTITY_H); } + /** - * Creates a new {@link PdfOcrFontProvider} instance. + * Creates a new {@link PdfOcrFontProvider} instance based on provided {@link FontSet} instance and font family. + * + * @param fontSet {@link FontSet} instance + * @param defaultFontFamily font family */ public PdfOcrFontProvider(FontSet fontSet, String defaultFontFamily) { diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfOcrMetaInfoContainer.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfOcrMetaInfoContainer.java index d53e92d..4a72d63 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfOcrMetaInfoContainer.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/PdfOcrMetaInfoContainer.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/ScaleMode.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/ScaleMode.java index fe8c7c0..7ae5c06 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/ScaleMode.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/ScaleMode.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/TextInfo.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/TextInfo.java index adb0ff2..75c8c7a 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/TextInfo.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/TextInfo.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrException.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrException.java index 505956a..5a76798 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrException.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrException.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -80,6 +80,8 @@ public String getMessage() { /** * Gets additional params for Exception message. + * + * @return params for exception message */ protected Object[] getMessageParams() { Object[] parameters = new Object[this.messageParams.size()]; diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrExceptionMessageConstant.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrExceptionMessageConstant.java index cc93e9a..2678054 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrExceptionMessageConstant.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrExceptionMessageConstant.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -22,6 +22,9 @@ This file is part of the iText (R) project. */ package com.itextpdf.pdfocr.exceptions; +/** + * Class that bundles all the exception message templates as constants. + */ public class PdfOcrExceptionMessageConstant { public static final String CANNOT_READ_INPUT_IMAGE = "Cannot read input image"; @@ -34,4 +37,4 @@ public class PdfOcrExceptionMessageConstant { private PdfOcrExceptionMessageConstant() { //Private constructor will prevent the instantiation of this class directly } -} \ No newline at end of file +} diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrInputException.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrInputException.java index 2f94fc2..9d17bd0 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrInputException.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/exceptions/PdfOcrInputException.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -59,4 +59,4 @@ public PdfOcrInputException(Throwable e) { super(e); } -} \ No newline at end of file +} diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/logs/PdfOcrLogMessageConstant.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/logs/PdfOcrLogMessageConstant.java index 140ea5b..acf2a9c 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/logs/PdfOcrLogMessageConstant.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/logs/PdfOcrLogMessageConstant.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -22,23 +22,35 @@ This file is part of the iText (R) project. */ package com.itextpdf.pdfocr.logs; +/** + * Class that bundles all the log message templates as constants. + */ public class PdfOcrLogMessageConstant { + + /** The constant CANNOT_READ_INPUT_IMAGE. */ public static final String CANNOT_READ_INPUT_IMAGE = "Cannot read input image {0}"; + /** The constant PROVIDED_FONT_PROVIDER_IS_INVALID. */ public static final String PROVIDED_FONT_PROVIDER_IS_INVALID = "Provided FontProvider is invalid. Please check that it contains valid fonts and default font family name."; + /** The constant CANNOT_READ_DEFAULT_FONT. */ public static final String CANNOT_READ_DEFAULT_FONT = "Cannot default read font: {0}"; + /** The constant CANNOT_ADD_DATA_TO_PDF_DOCUMENT. */ public static final String CANNOT_ADD_DATA_TO_PDF_DOCUMENT = "Cannot add data to PDF document: {1}"; + /** The constant START_OCR_FOR_IMAGES. */ public static final String START_OCR_FOR_IMAGES = "Starting ocr for {0} image(s)"; + /** The constant NUMBER_OF_PAGES_IN_IMAGE. */ public static final String NUMBER_OF_PAGES_IN_IMAGE = "Image {0} contains {1} page(s)"; + /** The constant COULD_NOT_FIND_CORRESPONDING_GLYPH_TO_UNICODE_CHARACTER. */ public static final String COULD_NOT_FIND_CORRESPONDING_GLYPH_TO_UNICODE_CHARACTER = "Could not find a glyph corresponding to Unicode character {0} in any of the fonts"; + /** The constant PDF_LANGUAGE_PROPERTY_IS_NOT_SET. */ public static final String PDF_LANGUAGE_PROPERTY_IS_NOT_SET = "PDF language property is not set"; private PdfOcrLogMessageConstant() { diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputType.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputType.java index e194cf4..be23d0d 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputType.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputType.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsAggregator.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsAggregator.java index c03783e..b086d0a 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsAggregator.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsAggregator.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsEvent.java b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsEvent.java index 864ec13..579e971 100644 --- a/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsEvent.java +++ b/pdfocr-api/src/main/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsEvent.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/ApiTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/ApiTest.java index 2d0f3f6..1a7b077 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/ApiTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/ApiTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/OcrPdfCreatorEventHelperTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/OcrPdfCreatorEventHelperTest.java index db6d8a6..28d619a 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/OcrPdfCreatorEventHelperTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/OcrPdfCreatorEventHelperTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/OcrProcessContextTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/OcrProcessContextTest.java index 3d4d357..d4372e4 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/OcrProcessContextTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/OcrProcessContextTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfA3uTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfA3uTest.java index 7b1cdbf..4693438 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfA3uTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfA3uTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfCreatorUtilTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfCreatorUtilTest.java index de67aa7..2910033 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfCreatorUtilTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfCreatorUtilTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfFontTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfFontTest.java index 47a85b7..3f81cea 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfFontTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfFontTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfInputImageTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfInputImageTest.java index 38e493d..ed4f2e3 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfInputImageTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfInputImageTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -22,6 +22,7 @@ This file is part of the iText (R) project. */ package com.itextpdf.pdfocr; +import com.itextpdf.pdfocr.exceptions.PdfOcrExceptionMessageConstant; import com.itextpdf.pdfocr.exceptions.PdfOcrInputException; import com.itextpdf.pdfocr.helpers.PdfHelper; import com.itextpdf.pdfocr.logs.PdfOcrLogMessageConstant; @@ -32,79 +33,44 @@ This file is part of the iText (R) project. import java.io.File; import org.junit.Assert; -import org.junit.Rule; import org.junit.Test; import org.junit.experimental.categories.Category; -import org.junit.rules.ExpectedException; @Category(IntegrationTest.class) public class PdfInputImageTest extends ExtendedITextTest { - @Rule - public ExpectedException junitExpectedException = ExpectedException.none(); @LogMessages(messages = { @LogMessage(messageTemplate = PdfOcrLogMessageConstant.CANNOT_READ_INPUT_IMAGE) }) @Test - public void testCorruptedImage() { - junitExpectedException.expect(PdfOcrInputException.class); + public void corruptedImageTest() { File file = new File(PdfHelper.getImagesTestDirectory() + "corrupted.jpg"); - String realOutput = PdfHelper.getTextFromPdf(file, "testCorruptedImage"); - Assert.assertNotNull(realOutput); - Assert.assertEquals("", realOutput); + Exception e = Assert.assertThrows(PdfOcrInputException.class, + () -> PdfHelper.getTextFromPdf(file, "testCorruptedImage")); + Assert.assertEquals(PdfOcrExceptionMessageConstant.CANNOT_READ_INPUT_IMAGE, e.getMessage()); } @LogMessages(messages = { @LogMessage(messageTemplate = PdfOcrLogMessageConstant.CANNOT_READ_INPUT_IMAGE) }) @Test - public void testCorruptedImageWithoutExtension() { - junitExpectedException.expect(PdfOcrInputException.class); - + public void corruptedImageWithoutExtensionTest() { File file = new File(PdfHelper.getImagesTestDirectory() + "corrupted"); - String realOutput = PdfHelper.getTextFromPdf(file, "testCorruptedImageWithoutExtension"); - Assert.assertNotNull(realOutput); - Assert.assertEquals("", realOutput); - } - - @LogMessages(messages = { - @LogMessage(messageTemplate = PdfOcrLogMessageConstant.CANNOT_READ_INPUT_IMAGE) - }) - @Test - public void testInvalidImagePathWithoutDot() { - junitExpectedException.expect(PdfOcrInputException.class); - - File file = new File("testName"); - String realOutput = PdfHelper.getTextFromPdf(file, "testInvalidImagePathWithoutDot"); - Assert.assertNotNull(realOutput); - Assert.assertEquals("", realOutput); + Exception e = Assert.assertThrows(PdfOcrInputException.class, + () -> PdfHelper.getTextFromPdf(file, "testCorruptedImageWithoutExtension")); + Assert.assertEquals(PdfOcrExceptionMessageConstant.CANNOT_READ_INPUT_IMAGE, e.getMessage()); } @LogMessages(messages = { @LogMessage(messageTemplate = PdfOcrLogMessageConstant.CANNOT_READ_INPUT_IMAGE) }) @Test - public void testInvalidImagePathWithDot() { - junitExpectedException.expect(PdfOcrInputException.class); - + public void invalidPathWithDotTest() { File file = new File("test.Name"); - String realOutput = PdfHelper.getTextFromPdf(file, "testInvalidImagePathWithDot"); - Assert.assertNotNull(realOutput); - Assert.assertEquals("", realOutput); - } - - @LogMessages(messages = { - @LogMessage(messageTemplate = PdfOcrLogMessageConstant.CANNOT_READ_INPUT_IMAGE) - }) - @Test - public void testValidImageWithoutExtension() { - junitExpectedException.expect(PdfOcrInputException.class); - - File file = new File(PdfHelper.getImagesTestDirectory() + "numbers_01"); - String realOutput = PdfHelper.getTextFromPdf(file, "testValidImageWithoutExtension"); - Assert.assertNotNull(realOutput); - Assert.assertEquals("", realOutput); + Exception e = Assert.assertThrows(PdfOcrInputException.class, + () -> PdfHelper.getTextFromPdf(file, "testInvalidPathWithDot")); + Assert.assertEquals(PdfOcrExceptionMessageConstant.CANNOT_READ_INPUT_IMAGE, e.getMessage()); } } diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfLayersTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfLayersTest.java index 769f95d..5e09587 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfLayersTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfLayersTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfOcrMetaInfoContainerTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfOcrMetaInfoContainerTest.java index 6a26704..bb42e68 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfOcrMetaInfoContainerTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/PdfOcrMetaInfoContainerTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/ScaleModeTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/ScaleModeTest.java index 294a8be..7aa490a 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/ScaleModeTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/ScaleModeTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/exceptions/PdfOcrExceptionTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/exceptions/PdfOcrExceptionTest.java index 7b43851..4c12c14 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/exceptions/PdfOcrExceptionTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/exceptions/PdfOcrExceptionTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/CustomOcrEngine.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/CustomOcrEngine.java index 80efea1..ea07210 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/CustomOcrEngine.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/CustomOcrEngine.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/CustomProductAwareOcrEngine.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/CustomProductAwareOcrEngine.java index 31cb04a..bb8dae5 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/CustomProductAwareOcrEngine.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/CustomProductAwareOcrEngine.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/ExtractionStrategy.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/ExtractionStrategy.java index b242cfb..f4a6c68 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/ExtractionStrategy.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/ExtractionStrategy.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/PdfHelper.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/PdfHelper.java index 688d5b3..3033ec2 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/PdfHelper.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/helpers/PdfHelper.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsAggregatorTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsAggregatorTest.java index 271996f..d341120 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsAggregatorTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsAggregatorTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsEventTest.java b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsEventTest.java index be5d4f1..55b6466 100644 --- a/pdfocr-api/src/test/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsEventTest.java +++ b/pdfocr-api/src/test/java/com/itextpdf/pdfocr/statistics/PdfOcrOutputTypeStatisticsEventTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/pom.xml b/pdfocr-tesseract4/pom.xml index 119bb45..addd3d4 100644 --- a/pdfocr-tesseract4/pom.xml +++ b/pdfocr-tesseract4/pom.xml @@ -5,7 +5,7 @@ com.itextpdf pdfocr-root - 2.0.1 + 2.0.2 pdfocr-tesseract4 @@ -27,7 +27,7 @@ net.sourceforge.tess4j tess4j - 4.5.5 + 4.6.1 log4j diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/AbstractTesseract4OcrEngine.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/AbstractTesseract4OcrEngine.java index 8838498..f90d87f 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/AbstractTesseract4OcrEngine.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/AbstractTesseract4OcrEngine.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -84,6 +84,13 @@ public abstract class AbstractTesseract4OcrEngine implements IOcrEngine, IProduc private ThreadLocal threadLocalMetaInfo = new ThreadLocal<>(); + /** + * Creates a new {@link Tesseract4OcrEngineProperties} instance + * based on another {@link Tesseract4OcrEngineProperties} instance (copy + * constructor). + * + * @param tesseract4OcrEngineProperties the other {@link Tesseract4OcrEngineProperties} instance + */ public AbstractTesseract4OcrEngine( Tesseract4OcrEngineProperties tesseract4OcrEngineProperties) { this.tesseract4OcrEngineProperties = tesseract4OcrEngineProperties; diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingOptions.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingOptions.java index 2d2bd3e..fec1f66 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingOptions.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingOptions.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -45,9 +45,19 @@ public class ImagePreprocessingOptions { */ private boolean smoothTiling = true; + /** + * Creates {@link ImagePreprocessingOptions} instance. + */ public ImagePreprocessingOptions() { } + /** + * Creates a new {@link ImagePreprocessingOptions} instance + * based on another {@link ImagePreprocessingOptions} instance (copy + * constructor). + * + * @param imagePreprocessingOptions the other {@link ImagePreprocessingOptions} instance + */ public ImagePreprocessingOptions(ImagePreprocessingOptions imagePreprocessingOptions) { this.tileWidth = imagePreprocessingOptions.tileWidth; this.tileHeight = imagePreprocessingOptions.tileHeight; diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingUtil.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingUtil.java index 925ae95..09d05fc 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingUtil.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingUtil.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/LeptonicaImageRotationHandler.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/LeptonicaImageRotationHandler.java index 2d7e106..fbbfd82 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/LeptonicaImageRotationHandler.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/LeptonicaImageRotationHandler.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/OutputFormat.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/OutputFormat.java index 5d75448..2a510d8 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/OutputFormat.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/OutputFormat.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4EventHelper.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4EventHelper.java index 3f30c01..ab8be12 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4EventHelper.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4EventHelper.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4ExecutableOcrEngine.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4ExecutableOcrEngine.java index f192c8b..fbb805b 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4ExecutableOcrEngine.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4ExecutableOcrEngine.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4FileResultEventHelper.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4FileResultEventHelper.java index 16c4663..9e2f49e 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4FileResultEventHelper.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4FileResultEventHelper.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4LibOcrEngine.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4LibOcrEngine.java index 84aa7d3..1b3cbf6 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4LibOcrEngine.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4LibOcrEngine.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfo.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfo.java index ccdd599..b394df7 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfo.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfo.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4OcrEngineProperties.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4OcrEngineProperties.java index a5f7cf9..cd5c0cd 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4OcrEngineProperties.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/Tesseract4OcrEngineProperties.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -435,6 +435,8 @@ final public boolean isUseTxtToImproveHocrParsing() { * For more information see https://github.com/tesseract-ocr/tesseract/issues/2702 * * @param useTxtToImproveHocrParsing {@link #useTxtToImproveHocrParsing} + * + * @return this {@link Tesseract4OcrEngineProperties} instance. */ final public Tesseract4OcrEngineProperties setUseTxtToImproveHocrParsing(boolean useTxtToImproveHocrParsing) { this.useTxtToImproveHocrParsing = useTxtToImproveHocrParsing; @@ -465,6 +467,8 @@ final public Tesseract4OcrEngineProperties setImagePreprocessingOptions( * If real confidence level is lower then line is ignored * Default value is 0 which means that everything is considered as properly recognized * Value may vary in range of 0-100 + * + * @return minimal confidence level */ final public int getMinimalConfidenceLevel() { return minimalConfidenceLevel; @@ -475,6 +479,10 @@ final public int getMinimalConfidenceLevel() { * If real confidence level is lower then line is ignored * Default value is 0 which means that everything is considered as properly recognized * Value may vary in range of 0-100 + * + * @param minimalConfidenceLevel minimal confidence level value + * + * @return this {@link Tesseract4OcrEngineProperties} instance */ final public Tesseract4OcrEngineProperties setMinimalConfidenceLevel(int minimalConfidenceLevel) { this.minimalConfidenceLevel = minimalConfidenceLevel; diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TesseractHelper.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TesseractHelper.java index fc2181c..5bd50a6 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TesseractHelper.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TesseractHelper.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TesseractOcrUtil.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TesseractOcrUtil.java index c94fdab..13d9694 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TesseractOcrUtil.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TesseractOcrUtil.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TextPositioning.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TextPositioning.java index d1fc9da..8fba5ff 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TextPositioning.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/TextPositioning.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/actions/data/PdfOcrTesseract4ProductData.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/actions/data/PdfOcrTesseract4ProductData.java index 2037ffe..a84d08f 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/actions/data/PdfOcrTesseract4ProductData.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/actions/data/PdfOcrTesseract4ProductData.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -30,9 +30,9 @@ This file is part of the iText (R) project. public class PdfOcrTesseract4ProductData { private static final String PDF_OCR_TESSERACT4_PRODUCT_NAME = "pdfOcr-tesseract4"; private static final String PDF_OCR_TESSERACT4_PUBLIC_PRODUCT_NAME = "pdfOCR-Tesseract4"; - private static final String PDF_OCR_VERSION = "2.0.1"; + private static final String PDF_OCR_VERSION = "2.0.2"; private static final int PDF_OCR_COPYRIGHT_SINCE = 2000; - private static final int PDF_OCR_COPYRIGHT_TO = 2021; + private static final int PDF_OCR_COPYRIGHT_TO = 2022; private static final ProductData PDF_OCR_PRODUCT_DATA = new ProductData(PDF_OCR_TESSERACT4_PUBLIC_PRODUCT_NAME, PDF_OCR_TESSERACT4_PRODUCT_NAME, PDF_OCR_VERSION, PDF_OCR_COPYRIGHT_SINCE, PDF_OCR_COPYRIGHT_TO); @@ -45,4 +45,4 @@ public class PdfOcrTesseract4ProductData { public static ProductData getInstance() { return PDF_OCR_PRODUCT_DATA; } -} \ No newline at end of file +} diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/actions/events/PdfOcrTesseract4ProductEvent.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/actions/events/PdfOcrTesseract4ProductEvent.java index 1daadc1..9d896b9 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/actions/events/PdfOcrTesseract4ProductEvent.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/actions/events/PdfOcrTesseract4ProductEvent.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -71,4 +71,4 @@ public static PdfOcrTesseract4ProductEvent createProcessImageEvent(SequenceId se public String getEventType() { return eventType; } -} \ No newline at end of file +} diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrInputTesseract4Exception.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrInputTesseract4Exception.java index 93b288f..fdcb939 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrInputTesseract4Exception.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrInputTesseract4Exception.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -22,6 +22,9 @@ This file is part of the iText (R) project. */ package com.itextpdf.pdfocr.tesseract4.exceptions; +/** + * Exception class for Tesseract4 input related exceptions. + */ public class PdfOcrInputTesseract4Exception extends PdfOcrTesseract4Exception { /** diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrTesseract4Exception.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrTesseract4Exception.java index e3882dd..f13c2dd 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrTesseract4Exception.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrTesseract4Exception.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -24,6 +24,9 @@ This file is part of the iText (R) project. import com.itextpdf.pdfocr.exceptions.PdfOcrException; +/** + * Exception class for Tesseract4 exceptions. + */ public class PdfOcrTesseract4Exception extends PdfOcrException { /** diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrTesseract4ExceptionMessageConstant.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrTesseract4ExceptionMessageConstant.java index ecdcbb3..5178bec 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrTesseract4ExceptionMessageConstant.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/exceptions/PdfOcrTesseract4ExceptionMessageConstant.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -22,6 +22,9 @@ This file is part of the iText (R) project. */ package com.itextpdf.pdfocr.tesseract4.exceptions; +/** + * Class that bundles all the error message templates as constants. + */ public class PdfOcrTesseract4ExceptionMessageConstant { public static final String INCORRECT_INPUT_IMAGE_FORMAT = "{0} format is not supported."; @@ -48,4 +51,4 @@ public class PdfOcrTesseract4ExceptionMessageConstant { private PdfOcrTesseract4ExceptionMessageConstant() { //Private constructor will prevent the instantiation of this class directly } -} \ No newline at end of file +} diff --git a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/logs/Tesseract4LogMessageConstant.java b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/logs/Tesseract4LogMessageConstant.java index cf4186e..fa61951 100644 --- a/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/logs/Tesseract4LogMessageConstant.java +++ b/pdfocr-tesseract4/src/main/java/com/itextpdf/pdfocr/tesseract4/logs/Tesseract4LogMessageConstant.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. @@ -22,6 +22,9 @@ This file is part of the iText (R) project. */ package com.itextpdf.pdfocr.tesseract4.logs; +/** + * Class that bundles all the log message templates as constants. + */ public class Tesseract4LogMessageConstant { public static final String TESSERACT_FAILED = "Tesseract failed: {0}"; diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/IntegrationEventHandlingTestHelper.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/IntegrationEventHandlingTestHelper.java index 7c9ee3d..af8a0a7 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/IntegrationEventHandlingTestHelper.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/IntegrationEventHandlingTestHelper.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/IntegrationTestHelper.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/IntegrationTestHelper.java index 33736d2..53ff970 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/IntegrationTestHelper.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/IntegrationTestHelper.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/TesseractExecutableIntegrationTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/TesseractExecutableIntegrationTest.java index 05f7f37..eb82775 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/TesseractExecutableIntegrationTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/TesseractExecutableIntegrationTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingExecutableTest.java index 9aac767..e7295e1 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingLibTest.java index ed596a9..10ad3d4 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingTest.java index 48a32b1..b0a61f3 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/Tesseract4EventHandlingTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/events/PdfOcrTesseract4ProductEventTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/events/PdfOcrTesseract4ProductEventTest.java index 4b0d5ce..a510971 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/events/PdfOcrTesseract4ProductEventTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/actions/events/PdfOcrTesseract4ProductEventTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/exceptions/PdfOcrTesseract4ExceptionTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/exceptions/PdfOcrTesseract4ExceptionTest.java index cafc5e4..496bc53 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/exceptions/PdfOcrTesseract4ExceptionTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/exceptions/PdfOcrTesseract4ExceptionTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationExecutableTest.java index 0bfd971..0b9aeee 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationLibTest.java index 5e4b0cb..de45cf0 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationTest.java index 9aa15c4..a911c79 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/general/BasicTesseractIntegrationTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationExecutableTest.java index 42d9b9a..a1d0fad 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationLibTest.java index 3615f7b..a8ff435 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationTest.java index f4f0685..90351bb 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/imageformats/ImageFormatIntegrationTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationExecutableTest.java index 29586b8..8155c23 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationLibTest.java index feb4ac5..b1b177b 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationTest.java index 0f7f992..dc37ad7 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdfa3u/PdfA3UIntegrationTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationExecutableTest.java index d90f3b3..f2eef21 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationLibTest.java index fc6c96d..6bb6a60 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationTest.java index 3e483ef..1eb2d93 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/pdflayers/PdfLayersIntegrationTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationExecutableTest.java index ccff5e1..b45e6ce 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationLibTest.java index 02af783..04c085f 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationTest.java index 9cc9a18..c6b3f41 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tessdata/TessDataIntegrationTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ApiTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ApiTest.java index 7ba2826..699dc15 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ApiTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ApiTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationExecutableTest.java index d868c50..a931974 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationLibTest.java index 2392f13..acf2008 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationTest.java index 639e2f3..df7c7bb 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImageIntegrationTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingUtilTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingUtilTest.java index 4cecea1..86199f9 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingUtilTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/ImagePreprocessingUtilTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4FileResultEventHelperTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4FileResultEventHelperTest.java index c132b55..9fe87b0 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4FileResultEventHelperTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4FileResultEventHelperTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingExecutableTest.java index 19481de..ecc626d 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingLibTest.java index f164736..13a2aef 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingTest.java index f8a7789..171061e 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/Tesseract4MetaInfoEventHandlingTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperExecutableTest.java index a2d73c9..9bce1ea 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperLibTest.java index 738cf5e..fdf3174 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperTest.java index df145e8..6b23b84 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractHelperTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractOcrUtilTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractOcrUtilTest.java index 234f470..d9ee4d4 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractOcrUtilTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/TesseractOcrUtilTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsExecutableTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsExecutableTest.java index 28b41f9..ff354b2 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsExecutableTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsExecutableTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsLibTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsLibTest.java index d920d6d..0db17e0 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsLibTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsLibTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsTest.java b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsTest.java index 74079b7..1651e57 100644 --- a/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsTest.java +++ b/pdfocr-tesseract4/src/test/java/com/itextpdf/pdfocr/tesseract4/UserWordsTest.java @@ -1,6 +1,6 @@ /* This file is part of the iText (R) project. - Copyright (c) 1998-2021 iText Group NV + Copyright (c) 1998-2022 iText Group NV Authors: iText Software. This program is offered under a commercial and under the AGPL license. diff --git a/pom.xml b/pom.xml index 6716267..22f2a06 100644 --- a/pom.xml +++ b/pom.xml @@ -5,12 +5,12 @@ com.itextpdf root - 7.2.1 + 7.2.4 pdfocr-root - 2.0.1 + 2.0.2 pom pdfOCR @@ -22,7 +22,7 @@ - 7.2.1 + 7.2.4 1.8 ${java.version} ${java.version} @@ -115,16 +115,6 @@ qa - - com.github.siom79.japicmp - japicmp-maven-plugin - 0.14.4 - - - none - - - org.owasp dependency-check-maven