Class: Pdfrb::Model::Type::MarkedContentReference
- Inherits:
-
Cos::Dictionary
- Object
- Object
- Cos::Dictionary
- Pdfrb::Model::Type::MarkedContentReference
- Defined in:
- lib/pdfrb/model/type/marked_content_reference.rb
Overview
Marked-Content Reference (s14.7.6.2). Refers to a marked-content sequence on a page by MCID.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from Cos::Dictionary
#[], #[]=, apply_arlington_definition, arlington_default, arlington_key_to_symbol, arlington_one_type_to_ruby, arlington_required?, arlington_scalar, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, merged_field, own_fields, #pdf_type, register_type, type_map, #validate
Methods included from Cos::ArlingtonBacked
Methods inherited from Object
#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, pdf_type, #pdf_type, #ref
Constructor Details
This class inherits a constructor from Pdfrb::Model::Cos::Dictionary
Instance Method Details
#content_item ⇒ Object
14 |
# File 'lib/pdfrb/model/type/marked_content_reference.rb', line 14 def content_item; self[:MCID]; end |
#page ⇒ Object
13 |
# File 'lib/pdfrb/model/type/marked_content_reference.rb', line 13 def page; self[:Pg]; end |
#resolved_page ⇒ Object
16 17 18 19 20 21 |
# File 'lib/pdfrb/model/type/marked_content_reference.rb', line 16 def resolved_page ref = page return nil unless ref && document document.object(ref) end |
#type ⇒ Object
12 |
# File 'lib/pdfrb/model/type/marked_content_reference.rb', line 12 def type; self[:Type]; end |