Debenu Quick PDF logo

SetContentStreamOptional

Content Streams and Optional Content Groups

Version history

This function was renamed in Quick PDF Library version 8.11.

The function name in earlier versions was SetLayerOptional.

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 links the content stream that was selected using the SelectContentStream function to an optional content group. This allows the content stream part to be selectively shown in Acrobat 6 or later.

Syntax

Delphi

function TDebenuPDFLibrary1511.SetContentStreamOptional(
  OptionalContentGroupID: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetContentStreamOptional(
  OptionalContentGroupID As Long) As Long

DLL

int DPLSetContentStreamOptional(int InstanceID, int OptionalContentGroupID)

Parameters

OptionalContentGroupID An ID returned by the NewOptionalContentGroup, GetOptionalContentGroupID or GetOptionalContentConfigOrderItemID functions

Return values

0 The OptionalContentGroupID parameter was not valid
1 The content stream part was linked to the optional content group successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport