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

com.adobe.pdfservices.operation.pdfjobs.result.pdfproperties.Content Maven / Gradle / Ivy

Go to download

Adobe PDF Services SDK allows you to access RESTful APIs to create, convert, and manipulate PDFs within your applications. Older versions can be found under groupId: com.adobe.documentservices, artifactId: pdftools-sdk

There is a newer version: 4.2.0
Show newest version
/*
 * Copyright 2024 Adobe
 * All Rights Reserved.
 *
 * NOTICE: Adobe permits you to use, modify, and distribute this file in
 * accordance with the terms of the Adobe license agreement accompanying
 * it. If you have received this file from a source other than Adobe,
 * then your use, modification, or distribution of it requires the prior
 * written permission of Adobe.
 */
package com.adobe.pdfservices.operation.pdfjobs.result.pdfproperties;

/**
 * This class provides information about the content of the specified PDF file, such as number of images, textual
 * content etc.
 */
public class Content {

    private Integer numberOfImages;

    private Boolean onlyImages;

    private Boolean hasText;

    private Boolean hasImages;

    private Boolean isEmpty;

    /**
     * Returns the number of images in the content.
     *
     * @return An Integer denoting the number of images in the content
     */
    public Integer getNumberOfImages() {
        return numberOfImages;
    }

    /**
     * Returns a boolean specifying whether the content consists only images.
     *
     * @return {@code true} if the content consists only images. False otherwise.
     */
    public Boolean containsImagesOnly() {
        return onlyImages;
    }

    /**
     * Returns a boolean specifying whether the content has any text.
     *
     * @return {@code true} if the content has any text. False otherwise.
     */
    public Boolean containsText() {
        return hasText;
    }

    /**
     * Returns a boolean specifying whether the content has any images.
     *
     * @return {@code true} if the content has any images. False otherwise.
     */
    public Boolean containsImages() {
        return hasImages;
    }

    /**
     * Returns a boolean specifying whether the content is empty/blank.
     *
     * @return {@code true} if the content is empty. False otherwise.
     */
    public Boolean isEmpty() {
        return isEmpty;
    }

    void setNumberOfImages(Integer numberOfImages) {
        this.numberOfImages = numberOfImages;
    }

    void setOnlyImages(Boolean onlyImages) {
        this.onlyImages = onlyImages;
    }

    void setHasText(Boolean hasText) {
        this.hasText = hasText;
    }

    void setHasImages(Boolean hasImages) {
        this.hasImages = hasImages;
    }

    void setEmpty(Boolean empty) {
        isEmpty = empty;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy