hpdft-0.1.1.1: A tool for looking through PDF file using Haskell
Copyright(c) Keiichiro Shikano 2016
LicenseMIT
Maintainerk16.shikano@gmail.com
Safe HaskellNone
LanguageHaskell2010

PDF.PDFIO

Description

Functions for use within IO.

Synopsis

Documentation

getObjectByRef :: Int -> [PDFObj] -> IO [Obj] Source #

Get a PDF object from a whole PDFObj by specifying `ref :: Int`

getPDFBSFromFile :: FilePath -> IO [PDFBS] Source #

Get PDF objects as a whole bytestring. Use getPDFObjFromFile instead if there's no reason to see a raw bytestring.

getPDFObjFromFile :: FilePath -> IO [PDFObj] Source #

Get PDF objects each parsed as PDFObj without being sorted.

getRootRef :: FilePath -> IO Int Source #

The reference number of /Root in filename.

getRootObj :: FilePath -> IO [Obj] Source #

The /Root object in filename.

getStream :: Bool -> [Obj] -> IO ByteString Source #

Get a PDF stream from a whole PDFObj by specifying `ref :: Int`

getTrailer :: FilePath -> IO Dict Source #

The trailer of filename.

getInfo :: FilePath -> IO Dict Source #

/Info of filename.