ParsePageContentLayer

Page manipulation

Description

This page describes ParsePageContentLayer in PDF Library for Delphi under the "Page manipulation" topic. API names, parameters, class names, filenames, and literals are kept exactly as they appear in the Delphi library and DLL entry points.

Review the syntax, parameters, and return values before calling the function

Syntax

Delphi

Function TPDFlib.ParsePageContentLayer(Layer: Integer): TPDFContentProgram;

Parameters

Decodes one content layer of the selected page into an editable TPDFContentProgram: a list of instructions, each one PDF content operator (ISO 32000-1 Table 51) with its decoded operand objects. Inline images are preserved verbatim. The caller frees the returned object. Returns nil for an invalid layer or grossly damaged content.

Return Values

Refer to the PDF Library for Delphi Developer Guide for specific return value semantics.

Remarks

Each layer is edited independently; a layer may legally begin or end inside an open graphics object, so unbalanced q/Q or BT/ET within one layer is tolerated. Unknown operators (for example vendor extensions inside BX/EX sections) are preserved and round-trip unchanged.