Installation and setup | pdf-to-text-go | Spatie       

 SPATIE  

pdf-to-text-go
==============

spatie.be/open-source

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

 Version   v1      

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

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

 Installation and setup
======================

###  On this page 

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

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

Requires Go 1.27 or newer.

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 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:

```
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 with Go:

```
go get github.com/spatie/pdf-to-text-go@v0.1.1
```

The import path is `github.com/spatie/pdf-to-text-go` and the package name is `pdftotext`. No Laravel dependency or service registration is required.

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)
