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

Safe HaskellNone
LanguageHaskell98

Pdf.Toolbox.Core.Object.Types

Description

Module contains definitions of pdf objects

See PDF1.7:7.3

Synopsis

Documentation

data Object a Source

Any pdf object

It is parameterized by Stream content

Instances

Eq a => Eq (Object a) 
Show a => Show (Object a) 

data Number Source

Integer or real

Constructors

NumInt Int 
NumReal Double 

newtype Boolean Source

"true" or "false"

Constructors

Boolean Bool 

newtype Name Source

Names usually are used as keys in dictionaries

They starts with '/', but we strip it out, see parseName

Constructors

Name ByteString 

newtype Dict Source

Set of key/value pairs

Constructors

Dict [(Name, Object ())] 

newtype Array Source

An array

Constructors

Array [Object ()] 

newtype Str Source

Sequence of zero or more bytes

Represents both the literal and hexadecimal strings

Constructors

Str ByteString 

data Stream a Source

Contains stream dictionary and a payload

The payload could be offset within pdf file, actual content, content stream or nothing

Constructors

Stream Dict a 

Instances

Eq a => Eq (Stream a) 
Show a => Show (Stream a) 

data Ref Source

Object reference, contains object index and generation

Constructors

Ref Int Int 

Instances