PDFiumPas Docs

TPdfContentSemanticFrame

Unit: FPdfContentNormalize
TPdfContentSemanticMark = record
  FirstByte, AfterByte, ObjectIndex, MatchingMark: Integer;
  Opens: Boolean;
  Name, Properties: AnsiString;
end;
TPdfContentObjectBoundary = record
  FirstByte, AfterByte, Kind: Integer;
end;
TPdfContentSemanticFrame = record
  Data: TBytes;
  Objects: TPdfContentObjectBoundaries;
  Marks: TPdfContentSemanticMarks;
end;

Available since v3.289.0, updated 2026-11-02

FieldContract
DataDecoded top-level page content sequence with separator bytes between source streams
ObjectsNative object order, corresponding paint-operation byte range and FPDF_PAGEOBJ_* Kind; no native handles
Marks.ObjectIndexBoundary before the next native object, with Length(Objects) denoting the final boundary
Marks.FirstByte / AfterByteZero-based inclusive/exclusive original marked-operation byte range, including its operands
Marks.Opens / MatchingMarkBegin/end sequence pairing by mark-array index; point marks use MatchingMark=-1
Marks.NameOriginal PDF name token including its slash on begin and point marks; empty on EMC
Marks.PropertiesResolved direct property dictionary for BDC/DP, or an empty string for BMC/MP and EMC

ReadPageContentSemanticFrame returns independent managed arrays. The frame is mutable parsing metadata, while source freshness, native reproduction and transactional publication remain the responsibility of the editing workflow

Nonpainting marked sequences retain their own occurrences at real object boundaries. A zero-width native object still occupies its native slot; an empty Form call occupies a real Form slot even when it has no children