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

Pdf.Core.Object.Builder

Description

Render Object to bytestring

Synopsis

Documentation

buildIndirectObject :: Ref -> Object -> Builder Source #

Build indirect object except streams

buildIndirectStream :: Ref -> Dict -> ByteString -> Builder Source #

Build indirect stream

buildObject :: Object -> Builder Source #

Render inline object (without "obj/endobj"). It is error to supply Stream, because it could not be inlined, but should always be an indirect object

buildNumber :: Scientific -> Builder Source #

Build a number

buildBool :: Bool -> Builder Source #

Build a bool

buildName :: Name -> Builder Source #

Build a name

buildDict :: Dict -> Builder Source #

Build a dictionary

buildArray :: Array -> Builder Source #

Build an array

buildString :: ByteString -> Builder Source #

Build a string

It may produce literal or hex string based on the context.

buildRef :: Ref -> Builder Source #

Build a reference

buildStream :: Dict -> ByteString -> Builder Source #

Build a stream

The function doesn't try to encode or encrypt the content