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

Safe HaskellNone

Pdf.Toolbox.Document.Monad

Description

Interface to the underlying PDF file

Synopsis

Documentation

class Monad m => MonadPdf m whereSource

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

Instances

MonadIO m => MonadPdf (Pdf' m) 

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

Recursively load indirect object