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

Safe HaskellNone

Pdf.Toolbox.Document.Page

Description

PDF document page

Synopsis

Documentation

data Page Source

Pdf document page

Instances

pageParentNode :: MonadPdf m => Page -> PdfE m PageNodeSource

Page's parent node

pageContents :: MonadPdf m => Page -> PdfE m [Ref]Source

List of references to page's content streams

pageMediaBox :: MonadPdf m => Page -> PdfE m (Rectangle Double)Source

Media box, inheritable

pageFontDicts :: MonadPdf m => Page -> PdfE m [(Name, FontDict)]Source

Font dictionaries for the page

pageExtractText :: (MonadPdf m, MonadIO m) => Page -> PdfE m TextSource

Extract text from the page

Right now it doesn't even try to insert additional spaces or newlines, and returns text as it is embeded. But someday it will.