Document package:pdf-toolbox-document
Mid level utils for processing PDF file
Basic example how to get number of pages in document
import Pdf.Document
withPdfFile "input.pdf" $ \pdf ->
doc <- document pdf
catalog <- documentCatalog doc
rootNode <- catalogPageNode catalog
count <- pageNodeNKids rootNode
print count
page <- loadPageByNum rootNode 1
text <- pageExtractText page
print text
PDF document
It is a trailer under the hood
Document encryption dictionary
Infornation dictionary for the document
A collection of tools for processing PDF files.
Mid level tools for processing PDF files.
Level of abstraction: document, catalog, page