Emit

Content stream editing

Description

Serialises the whole instruction list back to content stream source with normalised whitespace, one instruction per line

Syntax

Delphi

Function TPDFContentProgram.Emit: AnsiString;

Return values

The content stream source rebuilt from the instruction list

Remarks

The emitter is behaviour-preserving, so emitting an unmodified program reproduces the original page rendering

Use WritePageContentLayer to write the source back to a page layer and EmitRange to serialise a subrange only

See also

EmitRange, Parse, WritePageContentLayer, TPDFContentProgram