pdf-toolbox-core-0.1.1: A collection of tools for processing PDF files.
Safe HaskellNone
LanguageHaskell2010

Pdf.Core.Object.Util

Description

Utils relayted to pdf objects

Synopsis

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.

boolValue :: Object -> Maybe Bool Source #

Try to convert object to Bool

realValue :: Object -> Maybe Double Source #

Try to convert object to Double

Integral value automatically gets converted

nameValue :: Object -> Maybe Name Source #

Try to convert object to Name

stringValue :: Object -> Maybe ByteString Source #

Try to convert object to ByteString

arrayValue :: Object -> Maybe Array Source #

Try to convert object to array

streamValue :: Object -> Maybe Stream Source #

Try to convert object to stream

refValue :: Object -> Maybe Ref Source #

Try to convert object to reference

dictValue :: Object -> Maybe Dict Source #

Try to convert object to dictionary