Class BorderStyleUtil

java.lang.Object
com.itextpdf.kernel.pdf.annot.BorderStyleUtil

class BorderStyleUtil extends Object
  • Constructor Details

    • BorderStyleUtil

      private BorderStyleUtil()
  • Method Details

    • setStyle

      public static final PdfDictionary setStyle(PdfDictionary bs, PdfName style)
      Setter for the border style. Possible values are See also ISO-320001, Table 166.
      Parameters:
      bs - original border style dictionary.
      style - The new value for the annotation's border style.
      Returns:
      Updated border style dictionary entry.
    • setDashPattern

      public static final PdfDictionary setDashPattern(PdfDictionary bs, PdfArray dashPattern)
      Setter for the dashed border style. This property has affect only if PdfAnnotation.STYLE_DASHED style was used for border style (see setStyle(PdfDictionary, PdfName). See ISO-320001 8.4.3.6, "Line Dash Pattern" for the format in which dash pattern shall be specified.
      Parameters:
      bs - original border style dictionary.
      dashPattern - a dash array defining a pattern of dashes and gaps that shall be used in drawing a dashed border.
      Returns:
      Updated border style dictionary entry.