PDF4Java Reference Documentation
com.o2sol.pdf4java.annotations Package / PDFTextMarkupAnnotation Class / setTextMarkupColor Method
The annotation markup color.
Collapse All Expand All
In This Topic

setTextMarkupColor Method
In This Topic
Sets the annotation markup color.
Color must be Gray, RGB or CMYK.
Syntax

    public void setTextMarkupColor(
       PDFColor color
    )

#### Parameters

color
  The annotation markup color.

Exceptions

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

See Also

#### Reference

PDFTextMarkupAnnotation Class
PDFTextMarkupAnnotation Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.