Class: Origami::Destination::Zoom

Inherits:
Array show all
Includes:
Origami::Destination
Defined in:
lib/origami/destinations.rb

Overview

Class representing a Destination zooming on a part of a document.

Constant Summary

Constants inherited from Array

Array::TOKENS

Constants included from Object

Object::TOKENS

Instance Attribute Summary

Attributes included from Origami::Destination

#bottom, #left, #right, #top, #zoom

Attributes inherited from Array

#names_cache, #strings_cache, #xref_cache

Attributes included from Object

#file_offset, #generation, #no, #objstm_offset, #parent

Instance Method Summary collapse

Methods inherited from Array

#+, #<<, #[]=, parse, #pre_build, #real_type, #to_a, #to_obfuscated_str, #to_s

Methods included from Object

#<=>, #copy, #export, #indirect_parent, #is_indirect?, #logicalize, #logicalize!, parse, #pdf, #pdf_version_required, #post_build, #pre_build, #reference, #resolve_all_references, #set_indirect, #set_pdf, #size, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #xrefs

Methods inherited from Array

#shuffle, #shuffle!, #to_o

Constructor Details

#initialize(pageref, left = 0, top = 0, zoom = 0) ⇒ Zoom

Creates a new zoom Destination.

pageref

A Reference to a Page.

left, top

Coords in the Page.

zoom

Zoom factor.



65
66
67
68
69
70
71
# File 'lib/origami/destinations.rb', line 65

def initialize(pageref, left = 0, top = 0, zoom = 0)
  
  @left, @top, @zoom = left, top, zoom
  
  super([pageref, :XYZ, left, top, zoom])
  
end