How can I get font size of a PDF form field on iText7?
On iText5, I could do it as this:
PdfReader reader = new PdfReader(SRC);
PdfStamper stamper = new PdfStamper(reader, outputStream);
AcroFields fields = stamper.getAcroFields();
AcroFields.Item item = fields.getFieldItem(FIELDNAME);
PdfDictionary merged = item.getMerged(0);
TextField textField = new TextField(null, null, null);
fields.decodeGenericDictionary(merged, textField);
float fontSize = textField.getFontSize();
I could not find how I can do this on iText7. How can I do this?