Safe Haskell | None |
---|
Page tree node
- data PageNode
- data PageTree
- pageNodeNKids :: MonadPdf m => PageNode -> PdfE m Int
- pageNodeParent :: MonadPdf m => PageNode -> PdfE m (Maybe PageNode)
- pageNodeKids :: MonadPdf m => PageNode -> PdfE m [Ref]
- loadPageNode :: MonadPdf m => Ref -> PdfE m PageTree
- pageNodePageByNum :: MonadPdf m => PageNode -> Int -> PdfE m Page
Documentation
pageNodeNKids :: MonadPdf m => PageNode -> PdfE m IntSource
Total number of child leaf nodes, including deep children
pageNodePageByNum :: MonadPdf m => PageNode -> Int -> PdfE m PageSource
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.