Safe Haskell | None |
---|---|
Language | Haskell98 |
Parse content stream
- parseContentStream :: MonadIO m => RIS -> [StreamFilter] -> (Ref -> IS -> IO IS) -> [(Stream Int64, Ref, Int)] -> PdfE m (InputStream Expr)
- readNextOperator :: MonadIO m => InputStream Expr -> PdfE m (Maybe Operator)
Documentation
:: 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