pdf-toolbox-core-0.0.1.1: A collection of tools for processing PDF files.

Safe HaskellNone

Pdf.Toolbox.Core.Object.Util

Contents

Description

Utils relayted to pdf objects

Synopsis

Casting pdf objects

class FromObject c whereSource

Allows you to cast Object to specific type

Methods

fromObject :: (Show a, Monad m) => Object a -> PdfE m cSource

toName :: (Show a, Monad m) => Object a -> PdfE m NameSource

toDict :: (Show a, Monad m) => Object a -> PdfE m DictSource

toArray :: (Show a, Monad m) => Object a -> PdfE m ArraySource

toStr :: (Show a, Monad m) => Object a -> PdfE m StrSource

toRef :: (Show a, Monad m) => Object a -> PdfE m RefSource

toStream :: (Show a, Monad m) => Object a -> PdfE m (Stream a)Source

mapObject :: (a -> b) -> Object a -> Object bSource

Apply function to all stream contents

Dictionary

lookupDict :: Monad m => Name -> Dict -> PdfE m (Object ())Source

Number