Déplacer le champ
Contents
[
Hide
]
Déplacer un champ
-
Liez le PDF source à la façade
FormEditor. -
Appelez
moveField(...)avec le nom du champ cible et les nouvelles coordonnées du rectangle. -
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();
}
}