إضافة عنصر إلى القائمة
Contents
[
Hide
]
إضافة عنصر إلى حقل القائمة
- اربط ملف PDF المصدر بـ واجهة
FormEditor. - استدعِ
addListItem(...)للحقل المستهدف وزوج العرض/القيمة الجديد. - احفظ المستند المحدث.
public static void addListItem(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.addListItem("Country", new String[] {"New Zealand", "New Zealand"});
editor.save(outputFile.toString());
} finally {
editor.close();
}
}