Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cross reference
Synopsis
- data XRef
- data Entry
- readXRef :: Buffer -> Int64 -> IO XRef
- lastXRef :: Buffer -> IO XRef
- prevXRef :: Buffer -> XRef -> IO (Maybe XRef)
- trailer :: Buffer -> XRef -> IO Dict
- lookupTableEntry :: Buffer -> XRef -> Ref -> IO (Maybe Entry)
- lookupStreamEntry :: Dict -> InputStream ByteString -> Ref -> IO (Maybe Entry)
- isTable :: InputStream ByteString -> IO Bool
- data UnknownXRefStreamEntryType = UnknownXRefStreamEntryType Int
Documentation
Cross reference
XRefTable Int64 | Offset |
XRefStream Int64 Stream | Offset and stream |
Entry in cross reference stream
Read xref entry for the indirect object from xref table
:: Dict | xref stream dictionary |
-> InputStream ByteString | decoded xref stream content |
-> Ref | indirect object |
-> IO (Maybe Entry) |
Read xref entry for the indirect object from xref stream
See pdf1.7 spec: 7.5.8 Cross-Reference Streams.
May throw UnknownXRefStreamEntryType
isTable :: InputStream ByteString -> IO Bool Source #
Check whether the stream starts with "xref" keyword. The keyword itself and newline after it are consumed
data UnknownXRefStreamEntryType Source #
Unknown entry type should be interpreted as reference to null object