homepage: https://sr.ht/~geyaeb/haskell-pdftotext/
changelog-type: markdown
hash: adca12f438b48f353de6b7373479925bfaa4ddc15224352ec9abd692379b3f8b
test-bench-deps:
  base: '>=4.11 && <5'
  hspec: ==2.7.*
  text: ==1.2.*
  pdftotext: -any
maintainer: geyaeb@protonmail.com
synopsis: Extracts text from PDF using poppler
changelog: |
  # Revision history for pdftotext

  ## 0.0.1.0 -- 2020-05-10

  * First version.
basic-deps:
  bytestring: ==0.10.*
  base: '>=4.11 && <5'
  text: ==1.2.*
all-versions:
- 0.0.1.0
author: G. Eyaeb
latest: 0.0.1.0
description-type: markdown
description: |
  # pdftotext

  The `pdftotext` package provides functions for extraction of plain text from PDF documents. It uses C++ library [Poppler](https://poppler.freedesktop.org/), which is required to be installed in the system. Output of Haskell `pdftotext` library is identical to output of Poppler's tool `pdftotext`.

  ## Usage

  ```haskell
  import qualified Data.Text.IO as T
  import Pdftotext

  main :: IO ()
  main = do
    Just pdf <- openFile "path/to/file.pdf"
    T.putStrLn $ pdftotext Physical pdf
  ```

  ## Internals

  The library uses poppler via FFI, therefore internally all functions are of type `IO`. However, their non-`IO` variants (using `unsafePerformIO`) _should be_ safe to use. Module `Pdftotext.Internal` exposes all `IO`-typed functions.

  ## Contribute

  Project is hosted at https://sr.ht/~geyaeb/haskell-pdftotext/ . The homepage provides links to [Mercurial repository](https://hg.sr.ht/~geyaeb/haskell-pdftotext), [mailing list](https://lists.sr.ht/~geyaeb/haskell-pdftotext) and [ticket tracker](https://todo.sr.ht/~geyaeb/haskell-pdftotext).

  Patches, suggestions, questions and general discussions can be send to the [mailing list](https://lists.sr.ht/~geyaeb/haskell-pdftotext). Detailed information about sending patches by email can be found at [https://man.sr.ht/hg.sr.ht/email.md](https://man.sr.ht/hg.sr.ht/email.md).
license-name: BSD-3-Clause

Update from Hackage at 2020-05-16T16:05:56Z
Update from Hackage at 2020-05-16T16:05:56Z
