pdf-toolbox-content-0.0.5.0: A collection of tools for processing PDF files

Safe HaskellNone
LanguageHaskell98

Pdf.Toolbox.Content.Parser

Description

Parse content stream

Synopsis

Documentation

parseContentStream Source

Arguments

:: MonadIO m 
=> RIS

random input stream to read data from

-> [StreamFilter]

how to unpack data

-> (Ref -> IS -> IO IS)

how to decrypt data

-> [(Stream Int64, Ref, Int)]

content streams (with offset), their refs and length

-> PdfE m (InputStream Expr) 

Parse content streams for a page

Note: we need content stream ref to be able to decrypt stream content. We need stream length because it can be an indirect object in stream dictionary

readNextOperator :: MonadIO m => InputStream Expr -> PdfE m (Maybe Operator) Source

Read the next operator if any