PDF::Class — OCG

[Raku PDF Project] / [PDF-Class Module]

class PDF::OCG

/Type /OCG - Optional Content Group

has PDF::COS::TextString $.Name

(Required) The name of the optional content group, suitable for presentation in a reader’s user interface.

has Positional[PDF::COS::Name] @.Intent

(Optional) A single intent name or an array containing any combination of names. PDF defines two names, View and Design, that may indicate the intended use of the graphics in the group. A conforming reader may choose to use only groups that have a specific intent and ignore others. Default value: View.

Optional Content Usage dictionary

Optional Content Creator Info dictionary

has PDF::COS::TextString $.Creator

A text string specifying the application that created the group.

has PDF::COS::Name $.Subtype

A name defining the type of content controlled by the group.

has PDF::OCG::OCUsage::CreatorInfo $.CreatorInfo

Optional) A dictionary used by the creating application to store application-specific data associated with this optional content group.

Optional Content Language Info dictionary

has PDF::COS::TextString $.Lang

A text string that specifies a language and possibly. For example, es-MX represents Mexican Spanish

has PDF::OCG::OCUsage::ON-or-OFF $.Preferred

name whose values shall be either ON or OFF. Default value: OFF.

Optional Content Export control dictionary

has PDF::OCG::OCUsage::ON-or-OFF $.ExportState

name whose values shall be either ON or OFF. Default value: OFF.

has PDF::OCG::OCUsage::Export $.Export

This value shall indicate the recommended state for content in this group when the document (or part of it) is saved by a conforming reader to a format that does not support optional content (for example, a raster image format).

Optional Content Zoom control dictionary

has Numeric $.min

The minimum recommended magnification factor at which the group shall be ON. Default value: 0.

has Numeric $.max

The magnification factor below which the group shall be ON. Default value: infinity.

has PDF::OCG::OCUsage::Zoom $.Zoom

Optional) A dictionary specifying a range of magnifications at which the content in this optional content group is best viewed.

Optional Content Print control dictionary

has PDF::COS::Name $.Subtype

A name object specifying the kind of content controlled by the group; for example, Trapping, PrintersMarks and Watermark.

has PDF::OCG::OCUsage::ON-or-OFF $.PrintState

A name that shall be either ON or OFF, indicating that the group shall be set to that state when the document is printed from a conforming reader.

has PDF::OCG::OCUsage::Print $.Print

Optional) A dictionary specifying that the content in this group is shall be used when printing.

Optional Content View control dictionary

has PDF::OCG::OCUsage::View $.View

(Optional) A dictionary that shall have a single entry, ViewState, a name that has a value of either ON or OFF,

Optional Content User info dictionary

has PDF::COS::Name $.Type

A name object that shall be either Ind (individual), Ttl (title), or Org (organization).

has Positional[PDF::COS::TextString] @.Name

A text string or array of text strings representing the name(s) of the individual, position or organization.

has PDF::OCG::OCUsage::User $.User

Optional) A dictionary specifying one or more users for whom this optional content group is primarily intended

has PDF::OCG::OCUsage::PageElement $.PageElement

A dictionary declaring that the group contains a pagination artifact. It shall contain one entry, Subtype, whose value shall be a name that is either HF (header/footer), FG (foreground image or graphic), BG (background image or graphic), or L (logo).

PDF::Class v0.5.32

PDF Document Object Model

Authors

  • David Warring

License

Artistic-2.0

Dependencies

PDF::LitePDF:ver<0.6.13+>PDF::Grammar:ver<0.3.2+>PDF::Content:ver<0.8.3+>JSON::Fast

Test Dependencies

Provides

  • PDF::AcroForm
  • PDF::Action
  • PDF::Action::GoTo
  • PDF::Action::GoToR
  • PDF::Action::JavaScript
  • PDF::Action::Launch
  • PDF::Action::Named
  • PDF::Action::Sound
  • PDF::Action::SubmitForm
  • PDF::Action::Thread
  • PDF::Action::URI
  • PDF::Annot
  • PDF::Annot::AdditionalActions
  • PDF::Annot::Caret
  • PDF::Annot::Circle
  • PDF::Annot::FileAttachment
  • PDF::Annot::Highlight
  • PDF::Annot::Link
  • PDF::Annot::Popup
  • PDF::Annot::Square
  • PDF::Annot::Squiggly
  • PDF::Annot::StrikeOut
  • PDF::Annot::Text
  • PDF::Annot::ThreeD
  • PDF::Annot::Underline
  • PDF::Annot::Widget
  • PDF::Annot::_Markup
  • PDF::Annot::_TextMarkup
  • PDF::Appearance
  • PDF::Attributes
  • PDF::Attributes::Layout
  • PDF::Attributes::List
  • PDF::Attributes::PrintField
  • PDF::Attributes::Table
  • PDF::Attributes::UserProperties
  • PDF::Bead-Thread
  • PDF::Border
  • PDF::CIDSystemInfo
  • PDF::CMap
  • PDF::Catalog
  • PDF::Catalog::AdditionalActions
  • PDF::Class
  • PDF::Class::Defs
  • PDF::Class::FieldContainer
  • PDF::Class::Image
  • PDF::Class::Loader
  • PDF::Class::OptionalContent
  • PDF::Class::OutlineNode
  • PDF::Class::PageRef
  • PDF::Class::StructItem
  • PDF::Class::ThreeD
  • PDF::Class::Type
  • PDF::Class::Util
  • PDF::ColorSpace
  • PDF::ColorSpace::CalGray
  • PDF::ColorSpace::CalRGB
  • PDF::ColorSpace::DeviceN
  • PDF::ColorSpace::ICCBased
  • PDF::ColorSpace::Indexed
  • PDF::ColorSpace::Lab
  • PDF::ColorSpace::Pattern
  • PDF::ColorSpace::Separation
  • PDF::Destination
  • PDF::EmbeddedFile
  • PDF::Encoding
  • PDF::ExData::Markup3D
  • PDF::ExtGState
  • PDF::Field
  • PDF::Field::AdditionalActions
  • PDF::Field::Button
  • PDF::Field::Choice
  • PDF::Field::Signature
  • PDF::Field::Text
  • PDF::Filespec
  • PDF::Font
  • PDF::Font::CIDFont
  • PDF::Font::CIDFontType0
  • PDF::Font::CIDFontType2
  • PDF::Font::MMType1
  • PDF::Font::TrueType
  • PDF::Font::Type0
  • PDF::Font::Type1
  • PDF::Font::Type3
  • PDF::FontDescriptor
  • PDF::FontDescriptor::CID
  • PDF::FontFile
  • PDF::Function
  • PDF::Function::Exponential
  • PDF::Function::PostScript
  • PDF::Function::Sampled
  • PDF::Function::Stitching
  • PDF::Group
  • PDF::Group::Transparency
  • PDF::ICCProfile
  • PDF::Image
  • PDF::Info
  • PDF::MCR
  • PDF::MarkInfo
  • PDF::Mask
  • PDF::Mask::Alpha
  • PDF::Mask::Luminosity
  • PDF::Metadata::XML
  • PDF::NameTree
  • PDF::Names
  • PDF::Namespace
  • PDF::NumberTree
  • PDF::OBJR
  • PDF::OCG
  • PDF::OCG::PageElement
  • PDF::OCG::User
  • PDF::OCMD
  • PDF::Outline
  • PDF::Outlines
  • PDF::OutputIntent
  • PDF::Page
  • PDF::Page::AdditionalActions
  • PDF::Pages
  • PDF::Pattern
  • PDF::Pattern::Shading
  • PDF::Pattern::Tiling
  • PDF::Resources
  • PDF::Shading
  • PDF::Shading::Axial
  • PDF::Shading::Coons
  • PDF::Shading::FreeForm
  • PDF::Shading::Function
  • PDF::Shading::Lattice
  • PDF::Shading::Radial
  • PDF::Shading::Tensor
  • PDF::Signature
  • PDF::Sound
  • PDF::StructElem
  • PDF::StructTreeRoot
  • PDF::ViewerPreferences
  • PDF::XObject
  • PDF::XObject::Form
  • PDF::XObject::Image
  • PDF::XObject::PS

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.