page.getCanvas().drawString(text, font1, PdfBrushes.getBlack(), new Point2D.Float(x, y),frmt,false);
How can i get a custom color using RGB instead of PdfBrushes.getBlack() . Thanks.
page.getCanvas().drawString(text, font1, PdfBrushes.getBlack(), new Point2D.Float(x, y),frmt,false);
PdfRGBColor CustomColor= new PdfRGBColor(172,45,89);
page.getCanvas().drawString("This is a test!", font1, CustomColor, new Point2D.Float(), frmt, false);