Déplacer le champ

Déplacer un champ

  1. Liez le PDF source à la façade FormEditor.

  2. Appelez moveField(...) avec le nom du champ cible et les nouvelles coordonnées du rectangle.

  3. Enregistrez le document mis à jour.

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();
    }
}