PDF image import

"Jerzy Wrobel" <[email protected]>
Newsgroups gmane.comp.graphics.ipe.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.