@adobe/pdfservices-node-sdk
Version:
The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.
42 lines (41 loc) • 1.39 kB
TypeScript
/**
* This class provides information about the content of the specified PDF file, such as number of images, textual
* content etc.
*/
export declare class Content {
private readonly _numberOfImages?;
private readonly _onlyImages?;
private readonly _hasText?;
private readonly _hasImages?;
private readonly _isEmpty?;
/**
* Returns the number of images in the content.
*
* @returns An Integer denoting the number of images in the content
*/
get numberOfImages(): number | undefined;
/**
* Returns a boolean specifying whether the content consists only images.
*
* @returns `true` if the content consists only images. False otherwise.
*/
get containsImagesOnly(): boolean | undefined;
/**
* Returns a boolean specifying whether the content has any text.
*
* @returns `true` if the content has any text. False otherwise.
*/
get containsText(): boolean | undefined;
/**
* Returns a boolean specifying whether the content has any images.
*
* @returns `true` if the content has any images. False otherwise.
*/
get containsImages(): boolean | undefined;
/**
* Returns a boolean specifying whether the content is empty/blank.
*
* @returns `true` if the content is empty. False otherwise.
*/
get isEmpty(): boolean | undefined;
}