I've modified the file "graphics/inkscape" (it's a ruby source code). At line 69
was:
resultpipe = "--without-gui --print=\">#{tmpfilename}\" 2>#{logfile}"
and now:
resultpipe = "--without-gui --export-pdf=\"#{outfilename}\" 2>#{logfile}"
After this, all these lines can be commented out:
# ghostscript = GhostScript.new(@logger)
# ghostscript.setvariable('inputfile',tmpfilename)
# ghostscript.setvariable('outputfile',outfilename)
# report("converting #{tmpfilename} to #{outfilename}")
# ghostscript.convert
# begin
# File.delete(tmpfilename)
# rescue
# end
The difference is that inkscape can export directly to pdf and the conversion is
done much better, with transparencies and all the stuff.
Also, I noticed that at first it didn't work for me because at line 44
(logfile=System.null), I don't know why but this strings is "/dev/null/" in my
system and when executing the command a message was echoed:
"sh: /dev/null/ is a directory" and nothing was produced. Now I've modified the
caller to pass explictly "/dev/null" as logfile (in pstopdf.rb source, line 401)
and now all is working perfectly.
I hope you can solve these little bugs.
Regards,
Zeus.
Hans Hagen escribió:
Zeus G?mez Marmolejo wrote:
Hi all,
I'm working with Inkscape and I would like to embed some figures
directly in vector format. How do I do that??
I'm trying this:
\externalfigure[system][type=svg][scale=1000]
But a "dummy" image appears. Is there any svg support in context?!
\usemodule[res-08] \setups[rl:manipulate]
\setupexternalfigures[conversion=pdf]
\starttext
\externalfigure[system.svg]
\stoptext
if you're lucky, it works, otherwise you need to look into how rlxtools
works
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
------------------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________