| Copyright | (c) 2021 Scott Sedgwick |
|---|---|
| License | MIT |
| Maintainer | Scott Sedgwick <[email protected]> |
| Stability | experimental |
| Portability | unknown |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Pdf.FieldReader
Contents
Description
Simple function to extract PDF form field values from a PDF file.
Synopsis
- readPdfFields :: ByteString -> Map Text Text
File data parser
Extract a Map of name-value pairs from the data read from a PDF file. For example:
import qualified Data.ByteString as B import Data.Pdf.FieldReader (readPdfFields) main :: IO() main = do xs <- Data.ByteString.readFile "filename" let ys = readPdfFields xs print ys
readPdfFields :: ByteString -> Map Text Text Source #
Read fields from PDF file data