# Find Text PDF
[](https://crates.io/crates/findtext_pdf)
[](https://docs.rs/findtext_pdf)
[](https://deps.rs/crate/findtext_pdf)
[](https://github.com/nabbisen/findtext-pdf-rs/actions/workflows/release-executable.yaml)
[](https://github.com/nabbisen/findtext-pdf-rs/blob/main/LICENSE)
## Summary
Search text in PDF
## Development
First, add dependency:
```sh
cargo add findtext_pdf
```
Usage:
```rust
use findtext_pdf::search;
fn awesome_fn(keyword: &str, filepath: &str) {
let ret = search(keyword, filepath);
}
```
## Executable Usage
Available in [Assets](https://github.com/nabbisen/findtext-pdf-rs/releases/latest) in Releases. Cross-platform supported.
```sh
findtext_pdf <keyword> <filepath>
# will print out like:
# p.2: hej
```
## Acknowledgements
Depends on:
- [J-F-Liu/lopdf](https://github.com/J-F-Liu/lopdf)