PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFInkAnnotation Class / setInkColor Method
A com.o2sol.pdf4java.graphics.colors.PDFColor specifying the ink color with which to stroke the annotation paths.
Collapse All Expand All
In This Topic

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

    public void setInkColor(
       PDFColor inkColor
    )

#### Parameters

inkColor
  A com.o2sol.pdf4java.graphics.colors.PDFColor specifying the ink color with which to stroke the annotation paths.

Exceptions

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

See Also

#### Reference

PDFInkAnnotation Class
PDFInkAnnotation Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.