Parse

Content stream editing

Description

Builds the instruction list from one decoded content stream, where each instruction pairs a PDF content operator (ISO 32000-1 Table 51) with its decoded operands

Syntax

Delphi

Function TPDFContentProgram.Parse(Const Source: AnsiString): Boolean;

Parameters

SourceThe decoded content stream source to parse

Return values

True when the stream was parsed, false only on gross structural damage such as an unterminated string or dictionary

Remarks

Unknown operators are tolerated and preserved rather than rejected

Serialise the result back with Emit or write it to a page layer with WritePageContentLayer; a program obtained from ParsePageContentLayer is already parsed

See also

Emit, Count, ParsePageContentLayer, WritePageContentLayer, TPDFContentProgram