Move Field
Contents
[
Hide
]
Move a field
- Bind the source PDF to the
FormEditorfacade. - Call
moveField(...)with the target field name and new rectangle coordinates. - 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();
}
}