All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itextpdf.pdfocr.tesseract4.logs.Tesseract4LogMessageConstant Maven / Gradle / Ivy

Go to download

pdfOCR-Tesseract4 is an iText add-on for Java to recognize and extract text in scanned documents and images. It can also convert them into fully ISO-compliant PDF or PDF/A-3u files that are accessible, searchable, and suitable for archiving

There is a newer version: 4.0.0
Show newest version
/*
    This file is part of the iText (R) project.
    Copyright (c) 1998-2024 Apryse Group NV
    Authors: Apryse Software.

    This program is offered under a commercial and under the AGPL license.
    For commercial licensing, contact us at https://itextpdf.com/sales.  For AGPL licensing, see below.

    AGPL licensing:
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see .
 */
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}";

    public static final String COMMAND_FAILED = "Command failed: {0}";

    public static final String CANNOT_READ_FILE = "Cannot read file {0}: {1}";

    public static final String CANNOT_OCR_INPUT_FILE = "Cannot ocr input file: {0}";

    public static final String CANNOT_USE_USER_WORDS = "Cannot use custom user words: {0}";

    public static final String CANNOT_RETRIEVE_PAGES_FROM_IMAGE = "Cannot get pages from image {0}: {1}";

    public static final String PAGE_NUMBER_IS_INCORRECT = "Provided number of page ({0}) is incorrect for {1}";

    public static final String CANNOT_DELETE_FILE = "File {0} cannot be deleted: {1}";

    public static final String CANNOT_PROCESS_IMAGE = "Cannot process image: {0}";

    public static final String CREATED_TEMPORARY_FILE = "Created temp file {0}";

    // Constant is used only in .NET version, but it's kept here for the sake of consistency and autoporting.
    public static final String CANNOT_CONVERT_IMAGE_TO_GRAYSCALE = "Cannot convert to gray image with depth {0}";

    public static final String CANNOT_BINARIZE_IMAGE = "Cannot binarize image with depth {0}";

    public static final String CANNOT_CREATE_BUFFERED_IMAGE =
            "Cannot create a buffered image from the input image: {0}";

    public static final String START_OCR_FOR_IMAGES = "Starting ocr for {0} image(s)";

    public static final String CANNOT_READ_INPUT_IMAGE = "Cannot read input image {0}";

    public static final String CANNOT_GET_TEMPORARY_DIRECTORY = "Cannot get temporary directory: {0}";

    public static final String CANNOT_PARSE_NODE_BBOX = "Cannot parse node BBox, defaults to 0, 0, 0, 0. Node: {0}";

    public static final String CANNOT_READ_IMAGE_METADATA = "Cannot read image metadata {0}";

    public static final String UNSUPPORTED_EXIF_ORIENTATION_VALUE =
            "Unsuppoted EXIF Orientation value {0}. 1 is used by default";


    private Tesseract4LogMessageConstant() {
        //Private constructor will prevent the instantiation of this class directly
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy