XML로 내보내기
Contents
[
Hide
]
양식 필드 데이터를 XML로 저장하려면 FormExamples.exportXml(...)를 사용하세요.
public static void exportXml(Path inputFile, Path outputFile) throws Exception {
Form form = new Form();
try (OutputStream outputStream = Files.newOutputStream(outputFile)) {
form.bindPdf(inputFile.toString());
form.exportXml(outputStream);
} finally {
form.close();
}
}