[Up] [Next]
Go up to Interfacing with Ipe
Go forward to The interface files between Ipe and Ipe user macros

Preparing input for Ipe

First of all, the first line of an input file for Ipe should be used to identify it as an Ipe file, for instance by putting %\IPE there. The rest of the file consists of entries corresponding to the objects in the drawing. The order of objects corresponds to the back to front order of objects in an Ipe drawing.

The entries must be enclosed in a "group". Hence, a file readable by Ipe must look like this:

%\IPE
% Group
entry_1
entry_2
...
entry_n
% End
See Ipe file entries for the description of the entries corresponding to the different object types. Here is an example of a minimal IPE file, containing just a line and a text object.
%\IPE
% Group
% Line
% # 2
-156 -12
168 144
% sk 0
% End
 
% Text
% xy -72 72
% s hello world
% sk 0
% End
 
% End

[Up] [Next]