Class: Pdfrb::Model::Type::AFEmbeddedFile
- Inherits:
-
EmbeddedFile
- Object
- Object
- Cos::Dictionary
- Cos::Stream
- EmbeddedFile
- Pdfrb::Model::Type::AFEmbeddedFile
- Defined in:
- lib/pdfrb/model/type/af_embedded_file.rb
Overview
PDF 2.0 Associated-File embedded stream (App Note 002).
Instance Attribute Summary
Attributes inherited from Cos::Stream
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from EmbeddedFile
#checksum, #compressed?, #creation_date, #filter, #length, #mac_creator, #mime_type, #modification_date, #params, #size, #subtype
Methods inherited from Cos::Stream
#decoded_stream, #encoded_stream=, #initialize
Methods inherited from Cos::Dictionary
#[], #[]=, arlington_available?, arlington_default, arlington_key_to_symbol, arlington_loaded_for?, arlington_mark_loaded, arlington_object, arlington_one_type_to_ruby, arlington_required?, 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, own_fields, #pdf_type, register_type, type_map, #validate
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::Stream
Instance Method Details
#af_relationship ⇒ Object
10 11 12 13 14 15 |
# File 'lib/pdfrb/model/type/af_embedded_file.rb', line 10 def af_relationship return nil unless params obj = params.is_a?(Pdfrb::Model::Reference) && document ? document.object(params) : params obj && obj[:AFRelationship] end |
#associated_file_relationship? ⇒ Boolean
17 18 19 |
# File 'lib/pdfrb/model/type/af_embedded_file.rb', line 17 def associated_file_relationship? !!af_relationship end |