pub struct OptionalContentGroup {
pub id: ObjectId,
pub name: String,
pub intents: Vec<String>,
pub usage: Option<OcUsage>,
}Expand description
One Optional Content Group (ISO 32000-1 §8.11.2 Table 98).
Surfaced verbatim from the document — the state slot on this
struct is not filled in by optional_content; resolved states
live in OptionalContent::states keyed by group id (the
/OCProperties /OCGs array is the source of truth for “which
objects are OCGs”, which lets callers cross-walk against e.g.
content-stream /OC /OCx BDC resource names).
Fields§
§id: ObjectIdIndirect object id — the OCG dict’s (n 0 obj) number. Used
by content streams + OCMDs to refer to the group.
name: String/Name — UI label. PDF text string (literal or hex with
optional UTF-16BE BOM).
intents: Vec<String>/Intent — View / Design / both. Empty array on input
surfaces as an empty vec (per §8.11.2.3 “If the configuration’s
Intent is an empty array, no groups shall be used in determining
visibility”).
usage: Option<OcUsage>/Usage subkeys (Table 102). The most-used ones get typed
slots; everything else stays in the raw dict.
Trait Implementations§
Source§impl Clone for OptionalContentGroup
impl Clone for OptionalContentGroup
Source§fn clone(&self) -> OptionalContentGroup
fn clone(&self) -> OptionalContentGroup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more