移动字段
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();
}
}