class HexaPDF::Type::Annotation::AppearanceDictionary
The appearance dictionary references appearance streams for various use cases.
Each appearance can either be an XObject or a dictionary mapping names to XObjects. The latter is used when the appearance depends on the state of the annotation, e.g. a check box widget that can be checked or unchecked.
See: PDF1.7 s12.5.5
Public Instance Methods
down_appearance()
click to toggle source
The down appearance which should be used when the mouse button is pressed or held down inside the active area of the annotation.
# File lib/hexapdf/type/annotation.rb, line 76 def down_appearance self[:D] || self[:N] end
normal_appearance()
click to toggle source
The annotation's normal appearance.
# File lib/hexapdf/type/annotation.rb, line 64 def normal_appearance self[:N] end
rollover_appearance()
click to toggle source
The rollover appearance which should be used when the cursor is moved into the active area of the annotation without pressing a button.
# File lib/hexapdf/type/annotation.rb, line 70 def rollover_appearance self[:R] || self[:N] end