| 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
| Enum FileType Source # | |
Defined in Ipe.IpeRender Methods succ :: FileType -> FileType Source # pred :: FileType -> FileType Source # toEnum :: Int -> FileType Source # fromEnum :: FileType -> Int Source # enumFrom :: FileType -> [FileType] Source # enumFromThen :: FileType -> FileType -> [FileType] Source # enumFromTo :: FileType -> FileType -> [FileType] Source # enumFromThenTo :: FileType -> FileType -> FileType -> [FileType] Source # | |
| Show FileType Source # | |
| Eq FileType Source # | |
| Ord FileType Source # | |
Defined in Ipe.IpeRender | |
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
Whether or not to crop the output image.
Instances
| Enum Crop Source # | |
| Read Crop Source # | |
| Show Crop Source # | |
| Eq Crop Source # | |
| Ord Crop Source # | |