Installation | pdf-to-text-rust | Spatie      

 SPATIE  

pdf-to-text-rust
================

spatie.be/open-source

  [Docs](https://spatie.be/docs)  [Pdf-to-text-rust](https://spatie.be/docs/pdf-to-text-rust/v1)  Installation

 Version   v1      

 Other versions for crawler [v1](https://spatie.be/docs/pdf-to-text-rust/v1) 

  Installation    
- [ Introduction ](https://spatie.be/docs/pdf-to-text-rust/v1/introduction)
- [ Support us ](https://spatie.be/docs/pdf-to-text-rust/v1/support-us)
- [ Installation ](https://spatie.be/docs/pdf-to-text-rust/v1/installation-and-setup)
- [ Usage ](https://spatie.be/docs/pdf-to-text-rust/v1/usage)
- [ Testing ](https://spatie.be/docs/pdf-to-text-rust/v1/testing)
- [ Changelog ](https://spatie.be/docs/pdf-to-text-rust/v1/changelog)

 Installation
============

###  On this page 

1. [ Requirements ](#content-requirements)
2. [ Installation ](#content-installation)

Requirements
--------------------------------------------------------------------------------------------

Requires Rust 1.89 or newer. Install Rust using [rustup](https://rustup.rs/).

Behind the scenes this package uses [pdftotext](https://en.wikipedia.org/wiki/Pdftotext). You can verify if the binary is installed on your system using this command:

```
which pdftotext
```

On Windows, use `where.exe pdftotext` instead. If it is installed, this returns the path to the binary.

To install the binary you can use this command on Ubuntu or Debian:

```
apt-get install poppler-utils
```

On a Mac you can install the binary using brew:

```
brew install poppler
```

If you're on RedHat, CentOS, Rocky Linux or Fedora use this:

```
yum install poppler-utils
```

If you're on Windows you can download the [Xpdf command line tools](https://www.xpdfreader.com/download.html) and store their contents at `C:\Program Files\xpdf-tools-win`. The executable should be `C:\Program Files\xpdf-tools-win\bin64\pdftotext.exe`. Alternatively, install Poppler and add the directory containing `pdftotext.exe`to PATH.

Installation
--------------------------------------------------------------------------------------------

You can install the package using Cargo:

```
cargo add spatie-pdf-to-text
```

Continue with [usage](usage).

 A good
match?
-------------

### What we do best

- All things Laravel
- Custom frontend components
- Building APIs
- AI-powered features
- Simplifying things
- Clean solutions
- Integrating services

### Not our cup of tea

- WordPress themes
- Cutting corners
- Free mockups to win a job
- "Just execute the briefing"

 In short: we'd like to be a **substantial part** of your project.

 [ Get in touch via email ](mailto:info@spatie.be?subject=A%20good%20match%21&body=Tell%20us%20as%20much%20as%20you%20can%20about%0A-%20your%20online%20project%0A-%20your%20planning%0A-%20your%20budget%0A-%20%E2%80%A6%0A%0AAnything%20that%20helps%20us%20to%20start%20straightforward%21)
