WritePageContentLayer
Page manipulation
Description
This page describes WritePageContentLayer in PDFlibPas 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.WritePageContentLayer(Layer: Integer; ContentProgram: TPDFContentProgram): Integer;
Parameters
Serialises a TPDFContentProgram back into the given 1-based content layer of the selected page, replacing the layer stream (deflated). Pair with ParsePageContentLayer to parse, modify and rewrite page content.
Return Values
Refer to the PDFlibPas Developer Guide for specific return value semantics.
Remarks
The emitter is behaviour-preserving: writing back an unmodified program renders pixel-identically. Deleting instructions from the program removes the corresponding marks from the page.