Copyright | (c) 2006-2016, alpheccar.org |
---|---|
License | BSD-style |
Maintainer | misc@NOSPAMalpheccar.org |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Management of the PDF structure
- data PDFXForm
- addPage :: Maybe PDFRect -> PDF (PDFReference PDFPage)
- addPageWithTransition :: Maybe PDFRect -> Maybe PDFFloat -> Maybe PDFTransition -> PDF (PDFReference PDFPage)
- drawWithPage :: PDFReference PDFPage -> Draw a -> PDF a
- createPDFXForm :: PDFFloat -> PDFFloat -> PDFFloat -> PDFFloat -> Draw a -> PDF (PDFReference PDFXForm)
- data PDFTransition = PDFTransition !PDFFloat !PDFTransStyle
- data PDFTransStyle
- data PDFTransDirection
- data PDFTransDimension
- data PDFTransDirection2
- data PDFDocumentInfo = PDFDocumentInfo {}
- data PDFDocumentPageMode
- data PDFDocumentPageLayout
- data PDFViewerPreferences = PDFViewerPreferences {}
- standardDocInfo :: PDFDocumentInfo
- standardViewerPrefs :: PDFViewerPreferences
- data Draw a
- class PDFXObject a where
- class PDFGlobals m where
- withNewContext :: Draw a -> Draw a
- emptyDrawing :: Draw ()
Document actions
Special document objects
Page management
:: Maybe PDFRect | Page size or default document's one |
-> PDF (PDFReference PDFPage) | Reference to the new page |
Add a new page to a PDF document
addPageWithTransition Source #
:: Maybe PDFRect | Page size or default document's one |
-> Maybe PDFFloat | Optional duration |
-> Maybe PDFTransition | Optional transition |
-> PDF (PDFReference PDFPage) | Reference to the new page |
:: PDFReference PDFPage | Page |
-> Draw a | Drawing commands |
-> PDF a |
Draw on a given page
:: PDFFloat | Left |
-> PDFFloat | Bottom |
-> PDFFloat | Right |
-> PDFFloat | Top |
-> Draw a | Drawing commands |
-> PDF (PDFReference PDFXForm) |
Create a PDF XObject
Page transitions
data PDFTransition Source #
A PDF Transition
data PDFTransStyle Source #
Transition style
data PDFTransDirection Source #
Direction of a transition
data PDFTransDimension Source #
Dimension of a transition
data PDFTransDirection2 Source #
Direction of a transition
LeftToRight | |
BottomToTop | Wipe only |
RightToLeft | Wipe only |
TopToBottom | |
TopLeftToBottomRight | Glitter only |
Document information
data PDFDocumentInfo Source #
Document metadata
data PDFDocumentPageMode Source #
Document page mode
data PDFDocumentPageLayout Source #
Document page layout
data PDFViewerPreferences Source #
Viewer preferences
PDFViewerPreferences | |
|
standardDocInfo :: PDFDocumentInfo Source #
No information for the document
Draw monad and drawing functions
Types
The drawing monad
class PDFXObject a where Source #
A PDF Xobject which can be drawn
drawXObject :: PDFReference a -> Draw () Source #
class PDFGlobals m where Source #
bounds :: PDFXObject a => PDFReference a -> m (PDFFloat, PDFFloat) Source #
General drawing functions
withNewContext :: Draw a -> Draw a Source #
Draw in a new drawing context without perturbing the previous context that is restored after the draw
emptyDrawing :: Draw () Source #
An empty drawing