Safe Haskell | None |
---|---|
Language | Haskell2010 |
Page tree node
Synopsis
- data PageNode
- data PageTree
- pageNodeNKids :: PageNode -> IO Int
- pageNodeParent :: PageNode -> IO (Maybe PageNode)
- pageNodeKids :: PageNode -> IO [Ref]
- loadPageNode :: Pdf -> Ref -> IO PageTree
- pageNodePageByNum :: PageNode -> Int -> IO Page
Documentation
pageNodeNKids :: PageNode -> IO Int Source #
Total number of child leaf nodes, including deep children
pageNodePageByNum :: PageNode -> Int -> IO Page Source #
Find page by it's number
Note: it is not efficient for PDF files with a lot of pages,
because it performs traversal through the page tree each time.
Use pageNodeNKids
, pageNodeKids
and loadPageNode
for
efficient traversal.