hgeometry-ipe-0.13: Reading and Writing ipe7 files.
Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellNone
LanguageHaskell2010

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

Documentation

ipeRenderWith Source #

Arguments

:: Options

the options to use

-> FileType

output file type

-> FilePath

input file path

-> FilePath

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 -> FilePath -> FilePath -> IO () Source #

Call iperender with the default options.

note that pdf files produces with iperender cannot be opened with ipe.

data FileType Source #

Output filetypes supported by iperender

Constructors

PNG 
EPS 
PDF 
SVG 

Instances

Instances details
Enum FileType Source # 
Instance details

Defined in Ipe.IpeRender

Eq FileType Source # 
Instance details

Defined in Ipe.IpeRender

Ord FileType Source # 
Instance details

Defined in Ipe.IpeRender

Show FileType Source # 
Instance details

Defined in Ipe.IpeRender

data Options Source #

Options for iperender

Constructors

Options 

Instances

Instances details
Eq Options Source # 
Instance details

Defined in Ipe.IpeRender

Methods

(==) :: Options -> Options -> Bool #

(/=) :: Options -> Options -> Bool #

Ord Options Source # 
Instance details

Defined in Ipe.IpeRender

Show Options Source # 
Instance details

Defined in Ipe.IpeRender

defaultOptions :: Options Source #

The default options in Ipe

data Background Source #

Whether or not to render a transparent background in output png images.

data Crop Source #

Whether or not to crop the output image.

Constructors

NoCrop 
Crop 

Instances

Instances details
Enum Crop Source # 
Instance details

Defined in Ipe.IpeRender

Methods

succ :: Crop -> Crop #

pred :: Crop -> Crop #

toEnum :: Int -> Crop #

fromEnum :: Crop -> Int #

enumFrom :: Crop -> [Crop] #

enumFromThen :: Crop -> Crop -> [Crop] #

enumFromTo :: Crop -> Crop -> [Crop] #

enumFromThenTo :: Crop -> Crop -> Crop -> [Crop] #

Eq Crop Source # 
Instance details

Defined in Ipe.IpeRender

Methods

(==) :: Crop -> Crop -> Bool #

(/=) :: Crop -> Crop -> Bool #

Ord Crop Source # 
Instance details

Defined in Ipe.IpeRender

Methods

compare :: Crop -> Crop -> Ordering #

(<) :: Crop -> Crop -> Bool #

(<=) :: Crop -> Crop -> Bool #

(>) :: Crop -> Crop -> Bool #

(>=) :: Crop -> Crop -> Bool #

max :: Crop -> Crop -> Crop #

min :: Crop -> Crop -> Crop #

Read Crop Source # 
Instance details

Defined in Ipe.IpeRender

Show Crop Source # 
Instance details

Defined in Ipe.IpeRender

Methods

showsPrec :: Int -> Crop -> ShowS #

show :: Crop -> String #

showList :: [Crop] -> ShowS #