class HexaPDF::Type::Annotations::Polyline

Parent

A polyline annotation displays a polyline inside the annotation rectangle.

Also see PolygonPolyline for more information.

Example:

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

Field Definitions

NameType/Allowed ValuesRequiredDefault Value
TypeSymbolfalse:Annot
SubtypeSymboltruenil
RectHexaPDF::Rectangle or Arraytruenil
ContentsStringfalsenil
PHexaPDF::Dictionary or Hashfalsenil
NMStringfalsenil
MHexaPDF::DictionaryFields::PDFDate or String or Time or Date or DateTimefalsenil
FIntegerfalse0
APHexaPDF::Type::Annotation::AppearanceDictionary or Hashfalsenil
ASSymbolfalsenil
BorderHexaPDF::PDFArray or Arrayfalse[0, 0, 1]
CHexaPDF::PDFArray or Arrayfalsenil
StructParentIntegerfalsenil
OCHexaPDF::Dictionary or Hashfalsenil
AFHexaPDF::PDFArray or Arrayfalsenil
caNumericfalse1.0
CANumericfalse1.0
BMSymbolfalsenil
LangStringfalsenil
TStringfalsenil
PopupHexaPDF::Type::Annotation or Hashfalsenil
RCHexaPDF::Stream or String or Hashfalsenil
CreationDateHexaPDF::DictionaryFields::PDFDate or String or Time or Date or DateTimefalsenil
IRTHexaPDF::Dictionary or Hashfalsenil
SubjStringfalsenil
RTSymbol
One of: :R, :Group
false:R
ITSymbolfalsenil
ExDataHexaPDF::Type::Annotations::MarkupAnnotation::ExData or Hashfalsenil
VerticesHexaPDF::PDFArray or Arraytruenil
LEHexaPDF::PDFArray or Arrayfalse[:None, :None]
BSHexaPDF::Type::Annotation::Border or Hashfalsenil
ICHexaPDF::PDFArray or Arrayfalsenil
BEHexaPDF::Type::Annotation::BorderEffect or Hashfalsenil
ITSymbol
One of: :PolygonCloud, :PolyLineDimension, :PolygonDimension
falsenil
MeasureHexaPDF::Type::Measure or Hashfalsenil
PathHexaPDF::PDFArray or Arrayfalsenil
SubtypeSymboltrue:PolyLine