pdf-toolbox-document-0.0.6.0: A collection of tools for processing PDF files.

Safe HaskellNone
LanguageHaskell98

Pdf.Toolbox.Document

Description

Mid level utils for processing PDF file

Basic example how to get number of pages in document

 withBinaryFile "input.pdf" ReadMode $ handle ->
   runPdfWithHandle handle knownFilters $ do
     pdf <- document
     catalog <- documentCatalog pdf
     rootNode <- catalogPageNode catalog
     cout <- pageNodeNKids rootNode
     liftIO $ print count

Documentation