EncapsulateContentStream
Content Streams and Optional Content Groups
Description
A page in a PDF document has one or more content stream parts that together contain all the PDF page description commands for the page.
This function combines the content stream parts and surrounds the content stream with "save graphics state" and "restore graphics state" operators. This has the effect of clearing the current clipping path.
Some pages may contain unbalanced "save graphics state" and "restore graphics state" operators. The BalanceContentStream function can be used to repair such pages.
Syntax
Delphi
function TPDFlib.EncapsulateContentStream: Integer;ActiveX
Function PDFlib::EncapsulateContentStream As LongDLL
int DLEncapsulateContentStream(int InstanceID);