A library to programatically identify and fill out PDF forms
// Load the pdf into a form from a path let form = Form::load("path/to/pdf").unwrap(); // Get all types of the form fields (e.g. Text, Radio, etc) in a Vector let fieldtypes = form.getalltypes(); // Print the types for type in fieldtypes { println!("{:?}", type); };
* Write to the form fields
rust
extern crate pdfform;
use pdfform::{Form, FieldState};
// Load the pdf into a form from a path let mut form = Form::load("path/to/pdf").unwrap(); form.set_text(0, String::from("filling the field")); form.save("path/to/new/pdf");
```