// Set the color to fill the text characters!
composer.setFillColor(
new DeviceRGBColor(115f/255, 164f/255, 232f/255)
);
// Show the text!
composer.showText(
"PDFClown", // Text to show.
new Point2D.Double(size.getWidth()/2d,size.getHeight()/2d), // Anchor location: page center.
AlignmentXEnum.Center, // Horizontal placement (relative to the anchor): center.
AlignmentYEnum.Middle, // Vertical placement (relative to the anchor): middle.
50 // Rotation: 50-degree-counterclockwise.