pub fn new<R: Read>(reader: R) -> Result<Self, LoaderError> {
        let document = pdf_extract::Document::load_from(reader)?;
        Ok(Self { document })
    }
Creates a new PdfLoader from anything that implements the Read trait.
This is a generic constructor which can be used with any type of reader.

# Example

```rust,ignore
use std::io::Cursor;
let data = Cursor::new(vec![...] /* some PDF data */);
let loader = PdfExtractLoader::new(data)?;
```
src/document_loaders/pdf_loader/pdf_extract_loader.rs