Description
Gets an object by its name in the PDF document..
Applies to
Syntax
PDFModel SearchObject(string objectName)
Return value
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