PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawLine Method / drawLine(PDFPen,double,double,double,double) Method
Pen that determines the color, width, and style of the line.
The x-coordinate of the first point.
The y-coordinate of the first point.
The x-coordinate of the second point.
The y-coordinate of the second point.
Collapse All Expand All
In This Topic

drawLine(PDFPen,double,double,double,double) Method
In This Topic
Draws a line connecting the two points specified by the coordinate pairs.
Syntax

    public void drawLine(
       PDFPen pen,
       double x1,
       double y1,
       double x2,
       double y2
    )

#### Parameters

pen
  Pen that determines the color, width, and style of the line.
x1
  The x-coordinate of the first point.
y1
  The y-coordinate of the first point.
x2
  The x-coordinate of the second point.
y2
  The y-coordinate of the second point.

See Also

#### Reference

PDFCanvas Class
PDFCanvas Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.