نقل الحقل

Contents
[ ]

نقل حقل

  1. اربط ملف PDF المصدر بـ واجهة FormEditor.
  2. استدعِ moveField(...) مع اسم الحقل المستهدف وإحداثيات المستطيل الجديدة.
  3. احفظ المستند المحدث.
public static void moveField(Path inputFile, Path outputFile) {
    FormEditor editor = new FormEditor();
    try {
        editor.bindPdf(inputFile.toString());
        editor.moveField("Country", 200, 600, 280, 620);
        editor.save(outputFile.toString());
    } finally {
        editor.close();
    }
}