Single To Multiple

Convert a single-line field to multiple lines

  1. Bind the source PDF to the FormEditor facade.
  2. Call single2Multiple(...) for the target field name.
  3. Save the updated document.
public static void singleToMultiple(Path inputFile, Path outputFile) {
    FormEditor editor = new FormEditor();
    try {
        editor.bindPdf(inputFile.toString());
        editor.single2Multiple("City");
        editor.save(outputFile.toString());
    } finally {
        editor.close();
    }
}