DecimalFormat decimalFormat = new DecimalFormat();
decimalFormat.applyPattern("0.00");
if (UtilValidate.isNotEmpty(fontSize)) {
BigDecimal widthBase = new BigDecimal(600.00);
BigDecimal picWidth = new BigDecimal(decimalFormat.format(Float.parseFloat(width)));
Font graphicsFont = setFontSize(fontSize, picWidth.divide(widthBase, 2));
watermarkerSettings.setGraphicsFont(graphicsFont);
} else {
String errMsg = "Please select Text Size.";
request.setAttribute("_ERROR_MESSAGE_", errMsg);
return "error";