PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFLineAnnotation Class / setLineColor Method
A com.o2sol.pdf4java.graphics.colors.PDFColor specifying the line color with which to stroke the annotation's line.
Collapse All Expand All
In This Topic

setLineColor Method
In This Topic
Sets the annotation line color.
The color must be Gray, RGB or CMYK.
Syntax

    public void setLineColor(
       PDFColor value
    )

#### Parameters

value
  A com.o2sol.pdf4java.graphics.colors.PDFColor specifying the line color with which to stroke the annotation's line.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When the property is set to a color other than Gray, RGB or CMYK.

See Also

#### Reference

PDFLineAnnotation Class
PDFLineAnnotation Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.