diff options
| author | Markus Klein | 2018-06-05 13:32:39 +0200 |
|---|---|---|
| committer | Markus Klein | 2018-06-05 13:32:39 +0200 |
| commit | e55ee0393cde9cd49cd41c3872d658de89408440 (patch) | |
| tree | 9fe8a404b34eb21cb83e867096878b12956372f8 /src/lib.rs | |
| parent | 8901a6743905fe1d5edfeb3b7bd837c8870b28a5 (diff) | |
| download | pdf_form-e55ee0393cde9cd49cd41c3872d658de89408440.tar.bz2 | |
update doc
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -106,14 +106,14 @@ impl PdfObjectDeref for Object { impl Form { /// Takes a reader containing a PDF with a fillable form, analyzes the content, and attempts to - /// identify all of the fields the form has. This is the only way to create a `Form` + /// identify all of the fields the form has. pub fn load_from<R: io::Read>(reader: R) -> Result<Self, LoadError> { let doc = Document::load_from(reader)?; Self::load_doc(doc) } /// Takes a path to a PDF with a fillable form, analyzes the file, and attempts to identify all - /// of the fields the form has. This is the only way to create a `Form` + /// of the fields the form has. pub fn load<P: AsRef<Path>>(path: P) -> Result<Self, LoadError> { let doc = Document::load(path)?; Self::load_doc(doc) |
