Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utils relayted to pdf objects
Synopsis
- intValue :: Object -> Maybe Int
- int64Value :: Object -> Maybe Int64
- boolValue :: Object -> Maybe Bool
- realValue :: Object -> Maybe Double
- nameValue :: Object -> Maybe Name
- stringValue :: Object -> Maybe ByteString
- arrayValue :: Object -> Maybe Array
- streamValue :: Object -> Maybe Stream
- refValue :: Object -> Maybe Ref
- dictValue :: Object -> Maybe Dict
Documentation
intValue :: Object -> Maybe Int Source #
Try to convert object to Int
Floating value doesn't automatically get converted
int64Value :: Object -> Maybe Int64 Source #
Try to convert object to Int64
.
This is for cases, where according to the specs values above 2^29 (Int) have to be expected.
realValue :: Object -> Maybe Double Source #
Try to convert object to Double
Integral value automatically gets converted
stringValue :: Object -> Maybe ByteString Source #
Try to convert object to ByteString