Class Content
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.result.pdfproperties.Content
-
public class Content extends Object
This class provides information about the content of the specified PDF file, such as number of images, textual content etc.
-
-
Constructor Summary
Constructors Constructor Description Content()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleancontainsImages()Returns a boolean specifying whether the content has any images.BooleancontainsImagesOnly()Returns a boolean specifying whether the content consists only images.BooleancontainsText()Returns a boolean specifying whether the content has any text.IntegergetNumberOfImages()Returns the number of images in the content.BooleanisEmpty()Returns a boolean specifying whether the content is empty/blank.
-
-
-
Method Detail
-
getNumberOfImages
public Integer getNumberOfImages()
Returns the number of images in the content.- Returns:
- An Integer denoting the number of images in the content
-
containsImagesOnly
public Boolean containsImagesOnly()
Returns a boolean specifying whether the content consists only images.- Returns:
trueif the content consists only images. False otherwise.
-
containsText
public Boolean containsText()
Returns a boolean specifying whether the content has any text.- Returns:
trueif the content has any text. False otherwise.
-
containsImages
public Boolean containsImages()
Returns a boolean specifying whether the content has any images.- Returns:
trueif the content has any images. False otherwise.
-
isEmpty
public Boolean isEmpty()
Returns a boolean specifying whether the content is empty/blank.- Returns:
trueif the content is empty. False otherwise.
-
-