Class: HexaPDF::Type::Annotations::Polyline

Inherits:
PolygonPolyline show all
Defined in:
lib/hexapdf/type/annotations/polyline.rb

Overview

A polyline annotation displays a polyline inside the annotation rectangle.

Also see PolygonPolyline for more information.

Example:

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

See: PDF2.0 s12.5.6.9, HexaPDF::Type::Annotations::PolygonPolyline

Constant Summary

Constants included from LineEndingStyling

LineEndingStyling::LINE_ENDING_STYLE_MAP, LineEndingStyling::LINE_ENDING_STYLE_REVERSE_MAP

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 inherited from PolygonPolyline

#vertices

Methods included from LineEndingStyling

#line_ending_style

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