| Copyright | (C) Frank Staals |
|---|---|
| License | see the LICENSE file |
| Maintainer | Frank Staals |
| Safe Haskell | None |
| Language | GHC2024 |
Ipe.IpeRender
Description
Use iperender to generate png, pdf, or svg files.
Note that all functions in this module require that iperender is
installed (it is bundled with ipe) and available on the path.
Synopsis
- ipeRenderWith :: Options -> FileType -> OsPath -> OsPath -> IO ()
- ipeRender :: FileType -> OsPath -> OsPath -> IO ()
- data FileType
- data Options = Options {
- pageNumber :: Int
- viewNumber :: Int
- resolution :: Int
- transparent :: Background
- crop :: Crop
- defaultOptions :: Options
- data Background
- data Crop
Documentation
Arguments
| :: Options | the options to use |
| -> FileType | output file type |
| -> OsPath | input file path |
| -> OsPath | output file path |
| -> IO () |
Call iperender to produce an image of the specified type.
note that pdf files produces with iperender cannot be opened with ipe.
ipeRender :: FileType -> OsPath -> OsPath -> IO () Source #
Call iperender with the default options.
note that pdf files produces with iperender cannot be opened with ipe.
Output filetypes supported by iperender
Instances
Options for iperender
Constructors
| Options | |
Fields
| |
Instances
| Show Options Source # | |
| Eq Options Source # | |
| Ord Options Source # | |
defaultOptions :: Options Source #
The default options in Ipe
data Background Source #
Whether or not to render a transparent background in output png images.
Constructors
| OpaqueBackground | |
| TransparentBackground |
Instances
| Finitary Background Source # | |||||
Defined in Ipe.IpeRender Associated Types
Methods fromFinite :: Finite (Cardinality Background) -> Background Source # toFinite :: Background -> Finite (Cardinality Background) Source # start :: Background Source # end :: Background Source # previous :: Background -> Maybe Background Source # next :: Background -> Maybe Background Source # | |||||
| Generic Background Source # | |||||
Defined in Ipe.IpeRender Associated Types
| |||||
| Read Background Source # | |||||
Defined in Ipe.IpeRender | |||||
| Show Background Source # | |||||
Defined in Ipe.IpeRender | |||||
| Eq Background Source # | |||||
Defined in Ipe.IpeRender Methods (==) :: Background -> Background -> Bool Source # (/=) :: Background -> Background -> Bool Source # | |||||
| Ord Background Source # | |||||
Defined in Ipe.IpeRender Methods compare :: Background -> Background -> Ordering Source # (<) :: Background -> Background -> Bool Source # (<=) :: Background -> Background -> Bool Source # (>) :: Background -> Background -> Bool Source # (>=) :: Background -> Background -> Bool Source # max :: Background -> Background -> Background Source # min :: Background -> Background -> Background Source # | |||||
| type Cardinality Background Source # | |||||
Defined in Ipe.IpeRender | |||||
| type Rep Background Source # | |||||
Whether or not to crop the output image.
Instances
| Finitary Crop Source # | |||||
Defined in Ipe.IpeRender Associated Types
| |||||
| Generic Crop Source # | |||||
Defined in Ipe.IpeRender | |||||
| Read Crop Source # | |||||
| Show Crop Source # | |||||
| Eq Crop Source # | |||||
| Ord Crop Source # | |||||
| type Cardinality Crop Source # | |||||
Defined in Ipe.IpeRender | |||||
| type Rep Crop Source # | |||||