I just updated the libreoffice2eps.py Python Script.
AFAICS, this should be platform-independent. Can Windows folks give it a
try ?
If you run it like this:
python libreoffice2eps.py input.odg output.eps
with arbitrary pathnames as input.odg and output.eps, including
pathnames with spaces, it should just work fine.
Thanks,
T.
Il 08/09/2011 02:55, Tommaso Cucinotta ha scritto:
Il 08/09/2011 02:24, Julien Rioux ha scritto:
Well, looking at your script again, we don't really need a script.
We just need to set up a odg->ps converter, then let LyX do the
ps2eps part (and yes, it's available on windows).
libreoffice -nologo -convert-to eps -o $$o $$i
Unfortunately:
1) libreoffice conversion does not seem to support an output file
name, but only an output folder
By default, the output file is the same as the input (and in the same
folder), with extension changes to .eps.
Actually, I'd like to pass it through ps2eps, before achieving the
final .eps file (with the correct bounding box).
2) I tried to define merely a ODG to PS converter (rather than to EPS
converter), because LyX
apparently already has a PS to EPS conversion (using ps2eps); if I
go this way, preview with
Ctrl-R produces the correct output, but preview with Ctrl-t does
not (it includes the whole PS
page coming from OO, so it skips the PS to EPS conversion) -- or
it was the other way round,
one of the 2 has the problem.
I think we also need -headless in that call?
that might help I guess.
By the way, I just came across the attached Python version of the
conversion script. Can you give it a try on Win please ?
T.