# Fill PDF Forms
A library to programatically identify and fill out PDF forms
## Example Code
* Read a PDF and discover the form fields
```rust
extern crate pdf_form;
use pdf_form::{Form, FieldType};
let form = Form::load("path/to/pdf").unwrap();
let field_types = form.get_all_types();
for type in field_types {
println!("{:?}", type);
};
```
* Write to the form fields
```rust
extern crate pdf_form;
use pdf_form::{Form, FieldState};
let mut form = Form::load("path/to/pdf").unwrap();
form.set_text(0, String::from("filling the field"));
form.save("path/to/new/pdf");
```