Class PDFNet.ContentItem
PDFNet.ContentItem
Constructor Attributes | Constructor Name and Description |
---|---|
PDFNet.ContentItem(o, p)
Content items are graphical objects that exist in the document independently
of the structure tree but are associated with structure elements.
|
Method Attributes | Method Name and Description |
---|---|
copy()
Copy Constructor
|
|
getMCID()
|
|
getPage()
the page on which the marked content is drawn, whether directly as part of
page content or indirectly by being in a Form XObject or annotation drawn
on that page.
|
|
find the parent structure element.
|
|
getType()
|
Class Detail
PDFNet.ContentItem(o, p)
Content items are graphical objects that exist in the document independently
of the structure tree but are associated with structure elements.
Content items are leaf nodes of the structure tree.
- Parameters:
- o
- p
Method Detail
{contentitem}
copy()
Copy Constructor
- Returns:
- {contentitem} A promise that resolves to an object of type: "contentitem" (generated documentation)
{Obj}
getContainingStm()
- Returns:
- {Obj} A promise that resolves to the stream object that contains the marked-content sequence. The function will return a non-NULL object only if the marked-content sequence resides in a content stream other than the content stream for the page (e.g. in a form XObject).
{number}
getMCID()
- Returns:
- {number} A promise that resolves to mcid (marked-content identifier).
{Page}
getPage()
the page on which the marked content is drawn, whether directly as part of
page content or indirectly by being in a Form XObject or annotation drawn
on that page.
- Returns:
- {Page} A promise that resolves to an object of type: "Page" (generated documentation)
{selement}
getParent()
find the parent structure element.
- Returns:
- {selement} A promise that resolves to an object of type: "selement" (generated documentation)
{Obj}
getRefObj()
- Returns:
- {Obj} A promise that resolves to the referenced object.
{Obj}
getSDFObj()
- Returns:
- {Obj} A promise that resolves to pointer to the underlying SDF/Cos object.
{Obj}
getStmOwner()
- Returns:
- {Obj} A promise that resolves to nULL or the PDF object owning the stream returned by GetContainingStm() (e.g. the annotation to which an appearance stream belongs).
{number}
getType()
Return value enum:PDFNet.ContentItem.Type = { e_MCR : 0 e_MCID : 1 e_OBJR : 2 e_Unknown : 3 }
- Returns:
- {number} A promise that resolves to the content item type.