BalanceContentStream
Content Streams and Optional Content Groups, Page manipulation
Description
This function combines the content stream parts and surrounds the content stream with "save graphics state" and "restore graphics state" operators.
If the page contains unbalanced "save graphics state" and "restore graphics state" commands this function will add extra "restore graphics state" commands at the end of the page to balance the graphics state stack.
Syntax
Delphi
function TPDFlib.BalanceContentStream: Integer;ActiveX
Function PDFlib::BalanceContentStream As LongDLL
int DLBalanceContentStream(int InstanceID);