PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
PDF::OCConfig Class Reference

Optional content configuration. More...

#include <pdfsdk/cxx/optional_content.h>

Inheritance diagram for PDF::OCConfig:

Public Member Functions

void SetOCGroupState (const OCGroup &ocg, bool state, bool preserveRB=true)
 
bool GetOCGroupState (const OCGroup &ocg) const
 
 OCConfig (PDOCConfig handle, bool adopt=false) noexcept
 
 OCConfig (const OCConfig &rhs) noexcept
 
OCConfigoperator= (const OCConfig &rhs) noexcept
 
 OCConfig (OCConfig &&rhs) noexcept
 
OCConfigoperator= (OCConfig &&rhs) noexcept
 

Detailed Description

Optional content configuration.

ISO 32000-2:2020 - 8.11.4.3 Optional content configuration dictionaries

Member Function Documentation

◆ GetOCGroupState()

bool PDF::OCConfig::GetOCGroupState ( const OCGroup & ocg) const

Get the state of the specified OCGroup in this OCConfig.

Parameters
ocgThe OCGroup to get the state for.
Returns
The state of the OCGroup (true if visible, false if hidden).

◆ SetOCGroupState()

void PDF::OCConfig::SetOCGroupState ( const OCGroup & ocg,
bool state,
bool preserveRB = true )

Set the state of the specified OCGroup in this OCConfig.

Parameters
ocgThe OCGroup to set the state for.
stateThe state to set (true for visible, false for hidden).
preserveRBWhether to preserve the RB (Optional Content Configuration Dictionary) state.

The documentation for this class was generated from the following file: