GetPageElementMarkedContentInfo
Content stream editing, Tagged PDF
Description
Returns one integer property describing a marked-content frame and its BDC property list
Syntax
Delphi
Function TPDFlib.GetPageElementMarkedContentInfo(ElementID, MarkedContentIndex, InfoIndex: Integer): Integer;Parameters
| ElementID | Opaque page-element handle |
|---|---|
| MarkedContentIndex | 1-based frame index in outer-to-inner order |
| InfoIndex | Property selector from the table below |
Properties
| 0 | 1 when the frame has a property-list operand |
|---|---|
| 1 | 1 when the property list is a direct dictionary |
| 2 | 1 when the property list is a named /Properties resource |
| 3 | 1 when a dictionary was resolved and its entries can be enumerated |
| 4 | 1 when a valid non-negative integer /MCID is present |
| 5 | The /MCID, or -1 when the valid frame has no /MCID |
| 6 | The zero-based source BMC or BDC instruction index |
Return value
The requested value, or zero for an invalid handle, frame or selector
Remarks
Test selector 4 before interpreting selector 5 because zero is both a valid /MCID and the default result for an invalid query
An unresolved named property list remains visible through its source and resource-name accessors so malformed or incomplete resource dictionaries can be diagnosed without losing stack structure