Safe Haskell | None |
---|---|
Language | Haskell98 |
Write PDF files
It could be used to generate new PDF file or to incrementally update the existent one
To generate new file, first call writePdfHeader
,
then a number of writeObject
and finally writeXRefTable
To incrementally update PDF file just ommit the
writePdfHeader
and append the result to the existent file
- data PdfWriter m a
- runPdfWriter :: MonadIO m => OutputStream ByteString -> PdfWriter m a -> m a
- writePdfHeader :: MonadIO m => PdfWriter m ()
- writeObject :: MonadIO m => Ref -> Object ByteString -> PdfWriter m ()
- deleteObject :: MonadIO m => Ref -> Int64 -> PdfWriter m ()
- writeXRefTable :: MonadIO m => Int64 -> Dict -> PdfWriter m ()
Documentation
The monad
:: MonadIO m | |
=> OutputStream ByteString | streams to write to |
-> PdfWriter m a | action to run |
-> m a |
Execute writer action
writePdfHeader :: MonadIO m => PdfWriter m () Source
Write PDF header. Used for generating new PDF files. Should be the first call. Not used fo incremental updates
writeObject :: MonadIO m => Ref -> Object ByteString -> PdfWriter m () Source
Write object