hgeometry-ipe
Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellNone
LanguageGHC2024

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

-> 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.

data FileType Source #

Output filetypes supported by iperender

Constructors

PNG 
EPS 
PDF 
SVG 

Instances

Instances details
Finitary FileType Source # 
Instance details

Defined in Ipe.IpeRender

Associated Types

type Cardinality FileType 
Instance details

Defined in Ipe.IpeRender

type Cardinality FileType = GCardinality (Rep FileType)
Generic FileType Source # 
Instance details

Defined in Ipe.IpeRender

Associated Types

type Rep FileType 
Instance details

Defined in Ipe.IpeRender

type Rep FileType = D1 ('MetaData "FileType" "Ipe.IpeRender" "hgeometry-ipe-1.0.0.0-inplace" 'False) ((C1 ('MetaCons "PNG" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EPS" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PDF" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SVG" 'PrefixI 'False) (U1 :: Type -> Type)))
Show 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

type Cardinality FileType Source # 
Instance details

Defined in Ipe.IpeRender

type Cardinality FileType = GCardinality (Rep FileType)
type Rep FileType Source # 
Instance details

Defined in Ipe.IpeRender

type Rep FileType = D1 ('MetaData "FileType" "Ipe.IpeRender" "hgeometry-ipe-1.0.0.0-inplace" 'False) ((C1 ('MetaCons "PNG" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EPS" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "PDF" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SVG" 'PrefixI 'False) (U1 :: Type -> Type)))

data Options Source #

Options for iperender

Constructors

Options 

Instances

Instances details
Show Options Source # 
Instance details

Defined in Ipe.IpeRender

Eq Options Source # 
Instance details

Defined in Ipe.IpeRender

Ord 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.

Instances

Instances details
Finitary Background Source # 
Instance details

Defined in Ipe.IpeRender

Associated Types

type Cardinality Background 
Instance details

Defined in Ipe.IpeRender

type Cardinality Background = GCardinality (Rep Background)
Generic Background Source # 
Instance details

Defined in Ipe.IpeRender

Associated Types

type Rep Background 
Instance details

Defined in Ipe.IpeRender

type Rep Background = D1 ('MetaData "Background" "Ipe.IpeRender" "hgeometry-ipe-1.0.0.0-inplace" 'False) (C1 ('MetaCons "OpaqueBackground" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TransparentBackground" 'PrefixI 'False) (U1 :: Type -> Type))
Read Background Source # 
Instance details

Defined in Ipe.IpeRender

Show Background Source # 
Instance details

Defined in Ipe.IpeRender

Eq Background Source # 
Instance details

Defined in Ipe.IpeRender

Ord Background Source # 
Instance details

Defined in Ipe.IpeRender

type Cardinality Background Source # 
Instance details

Defined in Ipe.IpeRender

type Cardinality Background = GCardinality (Rep Background)
type Rep Background Source # 
Instance details

Defined in Ipe.IpeRender

type Rep Background = D1 ('MetaData "Background" "Ipe.IpeRender" "hgeometry-ipe-1.0.0.0-inplace" 'False) (C1 ('MetaCons "OpaqueBackground" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TransparentBackground" 'PrefixI 'False) (U1 :: Type -> Type))

data Crop Source #

Whether or not to crop the output image.

Constructors

NoCrop 
Crop 

Instances

Instances details
Finitary Crop Source # 
Instance details

Defined in Ipe.IpeRender

Associated Types

type Cardinality Crop 
Instance details

Defined in Ipe.IpeRender

type Cardinality Crop = GCardinality (Rep Crop)
Generic Crop Source # 
Instance details

Defined in Ipe.IpeRender

Associated Types

type Rep Crop 
Instance details

Defined in Ipe.IpeRender

type Rep Crop = D1 ('MetaData "Crop" "Ipe.IpeRender" "hgeometry-ipe-1.0.0.0-inplace" 'False) (C1 ('MetaCons "NoCrop" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Crop" 'PrefixI 'False) (U1 :: Type -> Type))

Methods

from :: Crop -> Rep Crop x Source #

to :: Rep Crop x -> Crop Source #

Read Crop Source # 
Instance details

Defined in Ipe.IpeRender

Show Crop Source # 
Instance details

Defined in Ipe.IpeRender

Eq Crop Source # 
Instance details

Defined in Ipe.IpeRender

Methods

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

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

Ord Crop Source # 
Instance details

Defined in Ipe.IpeRender

type Cardinality Crop Source # 
Instance details

Defined in Ipe.IpeRender

type Cardinality Crop = GCardinality (Rep Crop)
type Rep Crop Source # 
Instance details

Defined in Ipe.IpeRender

type Rep Crop = D1 ('MetaData "Crop" "Ipe.IpeRender" "hgeometry-ipe-1.0.0.0-inplace" 'False) (C1 ('MetaCons "NoCrop" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Crop" 'PrefixI 'False) (U1 :: Type -> Type))