SearchObject

Description

Gets an object by its name in the PDF document..

Applies to

PDFDocument_object

Syntax

PDFModel SearchObject(string objectName)

Argument

Description

objectName

The name of the object to search in the PDF document.


Return value

PDFModel object.

Usage

The returned object must be a content object derived from PDFModel, for example, PDFText object, or PDFPage object etc. You cannot search for an object that is used for define the document settings. For example, you cannot search for a PDFFont object or a PDFColor object.

Examples

This example searches for the PDFPage object "page":

lpdf_page.name = "page" 
lpdf_doc.addpage(lpdf_page)
lpdf_page2 = lpdf_doc.searchobject( "page")

See also

AddPage

Clone

GetPage

GetPageCount

GetTableOfContents

ImportDataWindow

ImportPDF

ImportRichTextEdit

IndexOf

InsertPage

RemovePage

Save

SetTableOfContents