ByteArrayInputStream pdfIn = new ByteArrayInputStream(decodeHtmb);
PdfReader pdfReader = new PdfReader(pdfIn);
PdfDocument document = new PdfDocument(pdfReader);
PdfAcroForm pdfAcroForm = PdfAcroForm.getAcroForm(document, true);
Map<String, PdfFormField> formFields = pdfAcroForm.getFormFields();
for (Entry<String, PdfFormField> entry : formFields.entrySet()) {
String key = entry.getKey();
PdfFormField field = entry.getValue();
boolean required = field.isRequired();
float fontSize = field.getFontSize();
PdfDictionary fieldObject = field.getPdfObject();
Rectangle rectangle = fieldObject.getAsRectangle(PdfName.Rect);
// int pageNumber = document.getPageNumber(fieldObject);
}