[Ipe-discuss] PDF image import

Jerzy Wrobel wrobel at ifpan.edu.pl
Mon Mar 17 11:03:44 CET 2014


Dear Frank,

I had also tried the epspdfipe.lua ipelet, but it did not work for me
 -- text was not converted to outlines. Therefore, I use pstoedit,
which converts text to polygons. My version contains something like:
..
local tmpeps="ipelet.ps"
local tmppdf="ipelet.pdf"
local tmpipe="ipelet.ipe"
local ret
ret=_G.os.execute("pdf2ps " .. file .. " " .. tmpeps)
ret=_G.os.execute("pstoedit -f pdf " .. tmpeps .. " " .. tmppdf)
ret=_G.os.execute("pdftoipe " .. tmppdf .. " ".. tmpipe)
file=tmpipe
..
>..Does everybody else who uses Ipe for
> presentations create their images only through Ipe?

For creating plots with the experimental data or function plots
I use gle script (http://glx.sourceforge.net/) with:
..
local glepdf="gle.pdf"
local tmpeps="ipelet.ps"
local tmppdf="ipelet.pdf"
local tmpipe="ipelet.ipe"
local ret
ret=_G.os.execute("gle -device pdf -output " .. glepdf .. " " .. file)
ret=_G.os.execute("pdf2ps " .. glepdf .. " " .. tmpeps)
ret=_G.os.execute("pstoedit -f pdf " .. tmpeps .. " " .. tmppdf)
ret=_G.os.execute("pdftoipe " .. tmppdf .. " ".. tmpipe)
..
Or, I use pgfplots latex package (together with standalone package) via:
..
local textex="tex"
local texpdf="tex.pdf"
local tmpeps="ipelet.ps"
local tmppdf="ipelet.pdf"
local tmpipe="ipelet.ipe"
local ret
ret=_G.os.execute("pdflatex -quiet -job-name=" .. textex .. " " .. file)
ret=_G.os.execute("pdf2ps " .. texpdf .. " " .. tmpeps)
ret=_G.os.execute("pstoedit -f pdf " .. tmpeps .. " " .. tmppdf)
ret=_G.os.execute("pdftoipe " .. tmppdf .. " ".. tmpipe)
..
The advantage is, that in GLE or pgfplots scripts you can select the same
Latex fonts as in Ipe, which gives you indistinguishable (and to much
extend editable) insert.

Cheers,
Jerzy




More information about the Ipe-discuss mailing list