| Copyright | (C) Frank Staals |
|---|---|
| License | see the LICENSE file |
| Maintainer | Frank Staals |
| Safe Haskell | None |
| Language | Haskell2010 |
Ipe.IpeToIpe
Description
Use ipetoipe to generate pdf files.
Note that all functions in this module require that ipetoipe is
installed (it is bundled with ipe) and available on the path.
Synopsis
- ipeToIpeWith :: Options -> FileType -> FilePath -> FilePath -> IO ()
- ipeToIpe :: FileType -> FilePath -> FilePath -> IO ()
- writeIpeFileAsPdf :: IpeWriteText r => FilePath -> IpeFile r -> IO ()
- data FileType
- data Export
- type PageNumber = Int
- type ViewNumber = Int
- data MarkedView
- data NoZip
- data PageRange
- data Options = Options {
- export :: Export
- pages :: PageRange
- singleView :: Maybe (PageNumber, ViewNumber)
- markedView :: MarkedView
- runLatex :: Bool
- nozip :: NoZip
- defaultOptions :: Options
Documentation
Arguments
| :: Options | the options to use |
| -> FileType | output file type |
| -> FilePath | input file path |
| -> FilePath | output file path |
| -> IO () |
Call ipetoipe to produce an image of the specified type.
ipeToIpe :: FileType -> FilePath -> FilePath -> IO () Source #
Call ipetoipe with the default options.
writeIpeFileAsPdf :: IpeWriteText r => FilePath -> IpeFile r -> IO () Source #
Write an ipe file to disk as an ipe readable pdf file.
Note that like all other functions in this module, this requires
ipetoipe to be installed (it is bundled with ipe) and available
on the path.
Note this will write soem intermediate file to your system temp dir.
Instances
| Enum FileType Source # | |
| Eq FileType Source # | |
| Show FileType Source # | |
Constructors
| RetainIpeInfo | |
| Export |
type PageNumber = Int Source #
type ViewNumber = Int Source #
data MarkedView Source #
Constructors
| All | |
| OnlyMarkedViews |
Instances
| Enum MarkedView Source # | |
Defined in Ipe.IpeToIpe Methods succ :: MarkedView -> MarkedView # pred :: MarkedView -> MarkedView # toEnum :: Int -> MarkedView # fromEnum :: MarkedView -> Int # enumFrom :: MarkedView -> [MarkedView] # enumFromThen :: MarkedView -> MarkedView -> [MarkedView] # enumFromTo :: MarkedView -> MarkedView -> [MarkedView] # enumFromThenTo :: MarkedView -> MarkedView -> MarkedView -> [MarkedView] # | |
| Eq MarkedView Source # | |
Defined in Ipe.IpeToIpe | |
| Show MarkedView Source # | |
Defined in Ipe.IpeToIpe Methods showsPrec :: Int -> MarkedView -> ShowS # show :: MarkedView -> String # showList :: [MarkedView] -> ShowS # | |
Constructors
| EntireFile | |
| PageRange (Range PageNumber) | only closed ranges are supported. |
Instances
Constructors
| Options | |
Fields
| |