Class: Pdfrb::Model::Type::RequirementsHandler

Inherits:
Cos::Dictionary show all
Defined in:
lib/pdfrb/model/type/requirements.rb

Overview

Requirements handler dictionary (s7.9.2, Catalog /Requirements). Common keys across every handler: the feature /S, the version /V that introduced it, the reader handler /RH, and the /Penalty for missing support. Feature-specific keys live on subclasses.

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

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

#arlington_object

Methods inherited from Object

#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type

Constructor Details

This class inherits a constructor from Pdfrb::Model::Cos::Dictionary

Instance Method Details

#fatal?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/pdfrb/model/type/requirements.rb', line 19

def fatal?
  penalty&.to_sym == :Fatal
end

#featureObject



14
# File 'lib/pdfrb/model/type/requirements.rb', line 14

def feature; self[:S]; end

#penaltyObject



17
# File 'lib/pdfrb/model/type/requirements.rb', line 17

def penalty; self[:Penalty]; end

#reader_handlerObject



16
# File 'lib/pdfrb/model/type/requirements.rb', line 16

def reader_handler; self[:RH]; end

#scriptObject

/Script — JavaScript reader-handler bootstrap.



24
# File 'lib/pdfrb/model/type/requirements.rb', line 24

def script; self[:Script]; end

#typeObject



13
# File 'lib/pdfrb/model/type/requirements.rb', line 13

def type; self[:Type]; end

#versionObject



15
# File 'lib/pdfrb/model/type/requirements.rb', line 15

def version; self[:V]; end