フィールドの移動
Contents
[
Hide
]
フィールドの移動
- ソース PDF を
FormEditorファサードにバインドしてください。 - 対象フィールド名と新しい矩形座標を使用して
moveField(...)を呼び出してください。 - 更新されたドキュメントを保存してください。
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();
}
}