PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawLine Method / drawLine(PDFPen,PDFPoint,PDFPoint) Method
Pen that determines the color, width, and style of the line.
Object that represents the first point to connect.
Object that represents the second point to connect.
Collapse All Expand All
In This Topic

drawLine(PDFPen,PDFPoint,PDFPoint) Method
In This Topic
Draws a line connecting two Objects.
Syntax

    public void drawLine(
       PDFPen pen,
       PDFPoint pt1,
       PDFPoint pt2
    )

#### Parameters

pen
  Pen that determines the color, width, and style of the line.
pt1
  Object that represents the first point to connect.
pt2
  Object that represents the second point to connect.

See Also

#### Reference

PDFCanvas Class
PDFCanvas Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.