PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFLineAnnotation Class / setEndPoint Method / setEndPoint(PDFPoint) Method
A com.o2sol.pdf4java.graphics.PDFPoint object that specifies the end point of the line annotation in display coordinates.
Collapse All Expand All
In This Topic

setEndPoint(PDFPoint) Method
In This Topic
Sets the line's end point.
Because the end point uses page display coordinates, the annotation must be added to the page before setting the end point.
Syntax

    public void setEndPoint(
       PDFPoint point
    )

#### Parameters

point
  A com.o2sol.pdf4java.graphics.PDFPoint object that specifies the end point of the line annotation in display coordinates.

Exceptions

Exception | Description
--- | ---
java.lang.NullPointerException | Thrown when point parameter is null.
java.lang.IllegalStateException | Thrown when the annotation does not belong to a page.

See Also

#### Reference

PDFLineAnnotation Class
PDFLineAnnotation Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.