class HexaPDF::Type::Annotations::Square

Parent

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:

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,