![]() | ![]() | ![]() | 12.1 Command line options |
Ipe supports the following command line options:
-sheet
style sheet name-show-configuration
Ipeview allows you to quickly view an Ipe file without starting the Ipe program.
The auxiliary program ipetoipe converts between the different Ipe file formats:
ipetoipe ( -xml | -pdf ) { <options> } infile [ outfile ]The first argument determines the format of the output file. If no output filename is provided, Ipe will try to guess it by appending one of the extensions "ipe" or "pdf" to the input file's basename.
For example, the command line syntax
ipetoipe -pdf figure1.ipeconverts figure1.ipe to figure1.pdf.
Ipetoipe understands the following options:
-export
-markedview
-pages
from-to-export
option.
-view
page-view-export
option.
-runlatex
-nozip
The program iperender exports a page of the document to a bitmap in PNG format, to a figure in Encapsulated Postscript (EPS), or to scalable vector graphics in SVG format. (Of course the result contains no Ipe markup, so make sure you keep your original!) For instance, the following command line
iperender -png -page 3 -resolution 150 presentation.pdf pres3.pngconverts page 3 of the Ipe document
presentation.pdf
to a
bitmap, with resolution 150 pixels per inch.
Ipeextract extracts the XML stream from an PDF or EPS file made by Ipe 6 or 7 and saves it in a file. It will work even if Ipe cannot actually parse the file, so you can use this tool to debug problems where Ipe fails to open your document.
ipeextract infile [ outfile ]If not provided, the outfile is guessed by appending "xml" to the infile's basename.
Ipe6upgrade takes as input a file created by any version of Ipe 6, and saves in the format of Ipe 7.0.0.
ipe6upgrade infile [ outfile ]If not provided, the outfile is guessed by adding the extension "ipe" to the infile's basename.
Ipescript runs an Ipe script written in the Lua language with bindings for the Ipe objects, such as the script "update-master". Ipescript automatically finds the script in Ipe's script directories. On Unix, you can place your own scripts in $HOME/.ipe/scripts.
The Ipe distribution contains the following scripts:
The auxiliary program svgtoipe converts an SVG figure to Ipe format. It cannot handle all SVG features (many SVG features are not supported by Ipe anyway), but it works for gradients.
svgtoipe is not part of the Ipe source distribution. You can download it separately.
You can convert arbitrary Postscript or PDF files into Ipe documents, making them editable. The auxiliary program pdftoipe converts (pages from) a PDF file into an Ipe XML-file. (If your source is Postscript, you have to first convert it to PDF using Acrobat Distiller or ps2pdf.) Once converted to XML, the file can be opened from Ipe as usual.
The conversion process should handle any graphics in the PDF file fine, but doesn't do very well on text—Ipe's text model is just too different.
pdftoipe is not part of the Ipe source distribution. You can download and build it separately.
If you still have figures that were created with Ipe 5, you can use ipe5toxml to convert them to Ipe 6 format. You can then use ipe6upgrade to convert them to Ipe 7 format.
ipe5toxml is not part of the Ipe distribution, but available as a separate download.
The auxiliary program figtoipe converts a figure in FIG format into an Ipe XML-file. This is useful if you used to make figures with Xfig before discovering Ipe, of if your co-authors made figures for your article with Xfig (converting them will have the added benefit of forcing your co-authors to learn to use Ipe). Finally, there are quite a number of programs that can export to FIG format, and figtoipe effectively turns that into the possibility of exporting to Ipe.
However, figtoipe is not quite complete. The drawing models of FIG and Ipe are also somewhat different, which makes it impossible to properly render some FIG files in Ipe. Ipe does not support depth ordering independent of grouping, pattern fill, and Postscript fonts. You may therefore have to edit the file after conversion.
figtoipe is not part of the Ipe distribution. You can download and build it separately. figtoipe is now maintained by Alexander Bürger.