GetContentCount

Description

Gets the count of PDFContent objects in a page (a PDFPage object).

Applies to

PDFPage object

Syntax

long GetContentCount()

Return value

Long. Returns the number of PDFContent objects.

Usage

Call the function to return the number of PDFContent objects in the PDFPage object. The PDFContent object may be an object that is derived from it (including PDFContent object, PDFInvisibleContent object, PDFVisibleContent object, PDFImage object, PDFImportContent object, PDFMultilineText object, PDFRichText object, PDFSharedText object, and PDFText object).

Examples

The following example gets the count of PDFContent objects in a PDFPage object:

//Get the count of PDFContent objects
Long  ll_count
ll_count  = lpdf_page.getcontentcount()

See also

AddContent

Clone

GetContent

GetHeight

GetWidth

ImportContent

IndexOf

RemoveContent

SetHeight

SetPageSize

SetWidth