CorelDraw importation with uniconvertor
I try to get CorelDraw cdr files importation working with uniconvertor on Mandriva Linux.
uniconvertor is installed and working fine (the binary is called uniconvertor).
I have /usr/share/inkscape/extensions/cdr2svg.sh with these contents: #! /bin/sh rc=0 TMPDIR="${TMPDIR-/tmp}" TEMPFILENAME=`mktemp 2>/dev/null || echo "$TMPDIR/$$"` TEMPFILENAME=${TEMPFILENAME}.svg
unviconvertor "$1" "${TEMPFILENAME}" > /dev/null 2>&1 || rc=1
cat < "${TEMPFILENAME}" || rc=1 rm -f "${TEMPFILENAME}" exit $rc
and there is also /usr/share/inkscape/extensions/cdr_input.inx: <inkscape-extension> <_name>Corel DRAW Input</_name> <id>org.inkscape.input.cdr</id> <dependency type="executable" location="path">unviconvertor</ dependency> <dependency type="executable" location="extensions">cdr2svg.sh</ dependency> <input> <extension>.cdr</extension> <mimetype>application/vnd.corel-draw</mimetype> <_filetypename>Corel DRAW 7-X4 files (*.cdr)</_filetypename> <_filetypetooltip>Open files saved in Corel DRAW 7-X4</ _filetypetooltip> <output_extension>org.inkscape.output.cdr</output_extension> </input> <script> <command reldir="extensions">cdr2svg.sh</command> </script> </inkscape-extension>
However when trying to open a cdr file with File - Open or File - Import in inkscape, I get the message: Failed to load the requested file
And at the command line there is: parser error : Start tag expected, '<' not found RIFFJ which gives the impression that it interprets it as an svg file.
How do I get this working correctly?
it would probably be best to submit this as a bug report at : https://bugs.launchpad.net/inkscape if you do this, then you can attach the .cdr file you are trying to convert. Also, you can specify the version of Inkscape. In the newer development versions, uniconvertor is still used but the script files that call it have been improved.
On Mon, 2008-09-22 at 15:08 -0700, Alvin Penner wrote:
it would probably be best to submit this as a bug report at : https://bugs.launchpad.net/inkscape if you do this, then you can attach the .cdr file you are trying to convert. Also, you can specify the version of Inkscape. In the newer development versions, uniconvertor is still used but the script files that call it have been improved.
Well, actually I have not been enable to import a single cdr file, which makes me suspect that something is wrong to my setup, which seems to be confirmed by the fact that it probably does not even call the uniconvertor script but immediately tries to read it as SVG.
Is there a way to find out which plug-ins inkscape knows about and uses?
I tried different random sample files from the web, such as the ones on this page: http://theboutons.com/index.php?option=com_content&view=article&id=7...
inkscape version is 0.46.
As far as I remember, Inkscape 0.46 does not have built-in support for unicinvertor, so unless you have installed it yourself, it probably won't work. On a Windows system you can find out for sure by viewing the file C:\Documents and Settings\username\Application Data\Inkscape\extensions-errors.log In my case I get the message :
Extension "Corel DRAW Input" failed to load because a dependency was not met. Dependency: type: executable location: path string: uniconv
Alternatively, when you try to load a file you should see an entry for CorelDraw 7-X4 .cdr files in the file-types box. If this is not there, then you have two options: you can install uniconvertor yourself from the website http://sk1project.org/modules.php?name=Products&product=uniconvertor or you could try a newer development version of Inkscape, which would include it as part of the package. This depends on which OS you are running. Uniconv is a python package so if you install it yourself, you may have to install Python first.
I can confirm that on a recent Win32 development build I was able to load some of the .cdr files from the website you referred to.
hth Alvin
Alvin Penner wrote:
so unless you have installed it yourself
sorry, I just re-read the thread and realized that you already have uniconvertor. The file you referred to, cdr2svg.sh, no longer exists. It has been replaced by a file called uniconv-ext.py. So probably the simplest way to proceed would be to use a newer development version of Inkscape.
participants (2)
-
Alvin Penner
-
Frederik Himpe