{-# OPTIONS_HADDOCK not-home #-}
module Pdf.Document.Internal.Types
(
Pdf(..),
Document(..),
Catalog(..),
Info(..),
PageNode(..),
Page(..),
PageTree(..),
FontDict(..),
)
where
import Pdf.Core
import Data.HashMap.Strict as HashMap
import Data.IORef
type ObjectCache = (Bool, HashMap Ref Object)
data Pdf = Pdf File (IORef ObjectCache)
data Document = Document Pdf Dict
data Catalog = Catalog Pdf Ref Dict
data Info = Info Pdf Ref Dict
data PageNode = PageNode Pdf Ref Dict
data Page = Page Pdf Ref Dict
data PageTree =
PageTreeNode PageNode |
PageTreeLeaf Page
data FontDict = FontDict Pdf Dict