pdf-toolbox-document-0.0.4.0: A collection of tools for processing PDF files.

Safe HaskellNone
LanguageHaskell98

Pdf.Toolbox.Document.Monad

Description

Interface to the underlying PDF file

Synopsis

Documentation

class Monad m => MonadPdf m where Source

Interface to the underlying PDF file

Methods

lookupObject :: Ref -> PdfE m (Object Int64) Source

find object by it's reference

streamContent :: Ref -> Stream Int64 -> PdfE m (Stream IS) Source

decoded stream content

Note: the IS returned is valid only until the next lookupObject or any other operation, that requares seek

getDecryptor :: PdfE m (Maybe Decryptor) Source

Current decryptor

getRIS :: PdfE m RIS Source

Get random access input stream for direct access to the PDF file

getStreamFilters :: PdfE m [StreamFilter] Source

Get all stream filters

Instances

MonadIO m => MonadPdf (Pdf' m) 

deref :: (MonadPdf m, Show a) => Object a -> PdfE m (Object ()) Source

Recursively load indirect object