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

Safe HaskellNone
LanguageHaskell98

Pdf.Toolbox.Document.Page

Description

PDF document page

Synopsis

Documentation

data Page Source

Pdf document page

Instances

pageParentNode :: MonadPdf m => Page -> PdfE m PageNode Source

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 Text Source

Extract text from the page

It tries to add spaces between chars if they don't present as actual characters in content stream.