Document -package:graphql
The symbol table stored in a document holds all its general entity
reference definitions.
Represents a document fragment, including the format, encoding, and
document type declaration as well as its content.
A pure representation of an XML document that uses a list as its
container type.
A BSON document is a list of
Fields
The ATK interface which represents the toplevel container for document
content.
The AtkDocument interface should be supported by any object whose
content is a representation or view of a document. The AtkDocument
interface should appear on the toplevel container for the document
content; however AtkDocument instances may be nested (i.e. an
AtkDocument may be a descendant of another AtkDocument) in those cases
where one document contains "embedded content" which can reasonably be
considered a document in its own right.
Memory-managed wrapper type.
Management of the PDF structure
Represent a full svg document with style, geometry and named elements.
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