Class: HexaPDF::Type::Annotations::Square

Inherits:
SquareCircle show all
Defined in:
lib/hexapdf/type/annotations/square.rb

Overview

A square annotation displays a rectangle inside the annotation rectangle (the “square” name defined by the PDF specification is a bit misleading).

Also see SquareCircle for more information.

Example:

#>pdf-small
doc.annotations.create_rectangle(doc.pages[0], 20, 30, 60, 40).
  border_style(color: "hp-blue", width: 2, style: [3, 1]).
  interior_color("hp-orange").
  regenerate_appearance

See: PDF2.0 s12.5.6.8, HexaPDF::Type::Annotations::SquareCircle,

Constant Summary

Constants included from DictionaryFields

DictionaryFields::Boolean, DictionaryFields::PDFByteString, DictionaryFields::PDFDate

Instance Attribute Summary

Attributes inherited from Object

#data, #document, #must_be_indirect

Method Summary

Methods included from InteriorColor

#interior_color

Methods included from BorderEffect

#border_effect

Methods included from BorderStyling

#border_style

Methods inherited from HexaPDF::Type::Annotation

#appearance, #appearance_dict, #contents, #create_appearance, #flags, #must_be_indirect?, #opacity, #regenerate_appearance

Methods included from Utils::BitField

#bit_field

Methods inherited from Dictionary

#[], #[]=, define_field, define_type, #delete, #each, each_field, #empty?, field, #key?, #to_hash, type, #type

Methods inherited from Object

#<=>, #==, #cache, #cached?, #clear_cache, deep_copy, #deep_copy, #document?, #eql?, field, #gen, #gen=, #hash, #indirect?, #initialize, #inspect, make_direct, #must_be_indirect?, #null?, #oid, #oid=, #type, #validate, #value, #value=

Constructor Details

This class inherits a constructor from HexaPDF::Object