Move Field

Contents
[ ]

Move a field

  1. Bind the source PDF to the FormEditor facade.
  2. Call moveField(...) with the target field name and new rectangle coordinates.
  3. Save the updated document.
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();
    }
}