ContentStreamSafe

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 determines if the content stream part that was selected using the

SelectContentStream function was created by loslab PDF Library or not.

Only content stream parts created by loslab PDF Library should be considered "safe" to drawn on. If a content stream part is not safe it would be best to combine all the content stream parts using the CombineContentStreams function before drawing on the page to prevent later errors in the document.

Syntax

Delphi

function TPDFlib.ContentStreamSafe: Integer;

ActiveX

Function PDFlib::ContentStreamSafe As Long

DLL

int DLContentStreamSafe(int InstanceID);

Return values

0The layer was not created by loslab PDF Library and care should be taken when drawing onto this layer
1The layer was created by loslab PDF Library and is safe to draw on