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

ElementIDOpaque page-element handle
MarkedContentIndex1-based frame index in outer-to-inner order
InfoIndexProperty selector from the table below

Properties

01 when the frame has a property-list operand
11 when the property list is a direct dictionary
21 when the property list is a named /Properties resource
31 when a dictionary was resolved and its entries can be enumerated
41 when a valid non-negative integer /MCID is present
5The /MCID, or -1 when the valid frame has no /MCID
6The 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