ReplaceInlineImage

Content stream editing

Description

Replaces one parsed BI..EI instruction with a named image XObject Do instruction

Syntax

Delphi

Function TPDFContentProgram.ReplaceInlineImage(Index: Integer; Const ResourceName: AnsiString): Boolean;

Parameters

IndexZero-based index of the parsed inline image instruction to replace
ResourceNameName of the image XObject resource the Do instruction draws, without the leading slash

Return values

True when the instruction is replaced, otherwise false

Remarks

ResourceName excludes the leading slash of the resource name; the image itself must be available under /Resources//XObject as a named XObject

See also

FindNextOp, Item, TPDFContentProgram, ParsePageContentLayer