line2pdf-0.0.7: Simple command-line utility to convert text into PDF

Safe HaskellNone

Text.LineToPDF.Internals

Documentation

data Encoding

Constructors

Latin 
Big5 
GBK 
EUC_JP 
EUC_KR 
ShiftJIS 

data AppConfig

Constructors

forall a . MkAppConfig 

Fields

pageWidth :: Int
 
pageHeight :: Int
 
ptSize :: Float
 
encodings :: [Encoding]
 
srcLines :: [a]
 
srcPut :: a -> IO ()
 
srcEscape :: Char -> a -> a
 
srcLength :: a -> Int
 
srcHead :: a -> Char
 

type M = IO

type Obj = Int

writeObj :: Obj -> M a -> M a

pr :: String -> M ()

newRef :: a -> M (IORef a)

readRef :: IORef a -> M a

writeRef :: IORef a -> a -> M ()

modifyRef :: IORef a -> (a -> a) -> M ()

markObj :: (Obj -> M a) -> M a

markLocation :: Obj -> M ()

startPage :: ([tPages :: Obj], [resources :: Obj]) => AppConfig -> M Int

endPage :: Int -> M ()

writePages :: ([tPages :: Obj], [resources :: Obj]) => AppConfig -> M [Obj]

writeFonts :: Show a => [(a, [Char])] -> FontConfig -> IO [[Char]]