Class PdfDashPattern


  • class PdfDashPattern
    extends PdfArray
    A PdfDashPattern defines a dash pattern as described in the PDF Reference Manual version 1.3 p 325 (section 8.4.3).
    See Also:
    PdfArray
    • Field Detail

      • dash

        private float dash
        This is the length of a dash.
    • Constructor Detail

      • PdfDashPattern

        public PdfDashPattern()
        Constructs a new PdfDashPattern.
      • PdfDashPattern

        PdfDashPattern​(float dash)
        Constructs a new PdfDashPattern.
    • Method Detail

      • toPdf

        public void toPdf​(PdfWriter writer,
                          java.io.OutputStream os)
                   throws java.io.IOException
        Returns the PDF representation of this PdfArray.
        Overrides:
        toPdf in class PdfArray
        Parameters:
        writer - for backwards compatibility
        os - the OutputStream to write the bytes to.
        Throws:
        java.io.IOException - Exception with a I/O error