قراءة قيم Form
Contents
[
Hide
]
الجافا الفئة FormExamples تُظهر سير عمل معالجة النماذج الرئيسي الذي توفره واجهة برمجة التطبيقات Facades API.
الحصول على قيم الحقول
استخدام FormExamples.inspectFormFields(...) لتفقد أسماء الحقول وقيمها الحالية.
public static void inspectFormFields(Path inputFile) {
Form form = new Form();
try {
form.bindPdf(inputFile.toString());
System.out.println("Field names: " + Arrays.toString(form.getFieldNames()));
for (String fieldName : form.getFieldNames()) {
System.out.println(fieldName + " = " + form.getField(fieldName));
}
} finally {
form.close();
}
}