LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CorelDraw File Support!?? (https://www.linuxquestions.org/questions/linux-software-2/coreldraw-file-support-193082/)

FreakboY 06-13-2004 04:37 PM

CorelDraw File Support!??
 
Is there any way to open .cdr (Corel Draw Format) with inkscape or sodipodi!??

thanks!

jlinkels 08-21-2004 08:01 PM

Freakboy,

I have the same problem: I am a die-hard CDR user, now transferring to Inkscape. I have *read* (not verified) that Corel 10-up can export in SVG. Inkscape reads SVG.

Also, it seems that it is possible to export WMF from CDR (any version) and convert that to SVG. There is a program around on Internet which does this.

I haven't tried both options yet, I only use Corel 7 with well-known bugs.

I hope this helps you a little bit into the right direction.

jlinkels

FreakboY 08-22-2004 01:52 AM

any help/comment/idea is appreciated!!
i'll try exporting to .svg

Thank You!

jlinkels 01-15-2005 09:37 PM

A little bit of progress here.

My most important goal at the moment is to be able to use CorelDraw Clipart in Inkscape. (Hey, I own a legal version of Corel 7. I think I am allowed to do this :D )

Corel 7 does not support SVG yet. However, when opening a clipart file .CDR, you can export it as .CMX

.CMX can be imported into Sketch. From Sketch you can save the drawing as .SVG. Sketch runs on Linux.

.SVG can be opened in Inkscape.

Surprisingly enough, opening a .WMF or .AI file failed in Inkscape. The files seem to be correct, in Sketch they do open.

I was even more surprised by the lack of any quality loss while converting the pictures. .CDR -> .CMX is obvious in CorelDraw, but .CMX -> .SVG in Sketch was really surprising.

It should be possible to automate the conversion process in Corel, using a script. Haven't tried that yet. It should be even easier to write a script for Sketch so that Sketch can be used in batch mode. Sketch is written Pyhon. Me no speak no Python :(

But at least it is possible to GET the Corel Clipart in Inkscape.

jlinkels

jlinkels 01-22-2005 02:44 PM

CDR conversion AND a shameless question
 
Hello all,

This week I have converted the entire CorelDraw Clipart collection to CMX format. These were about 28700 files!

CMX can be read by Sketch. Sketch can write in SVG. SVG is needed for Inkscape.

Corel Graphics suite 12 is supposed to write in SVG. I downloaded the trial version of Corel 12. Corel 12 cannot read its own CDR clipart and convert it to SVG!. Every file which I attempted to write in SVG produced errors, and the SVG file could not be opened by Sketch or Inkscape. So I decided to write a script in Corel 7 to convert from CDR to CMX

Writing a script for CorelDraw 7 to perform this was not that difficult, but Corel shows a good Windoze policy by not freeing up used memory when a file is closed. After conversion of 200-300 files, Corel would have used over 1 GB of memory.

So I wrote a script which can be called in batch mode and converts a small number of files (50). I called this script from a loop in a DOS batch file. The script holds track of which files still have to be converted, and every time it is called, it starts converting at the point where it had ended last time.

Corel script

DOS batch file

To make the script as easy as possible, you need a file containing the names and paths of all files to be converted. An example file is here.

It is important that all directories where the CMX files are written, already exit. Either you use the existing Clipart directory structure, or you do a ll -R, grep the directories and awk the mkdir command in front of all paths. I am sure you can put this on one command line, but you can also use a command file like this one. It contains the correct file tree for the clipart collection which came with Corel 7

If you want to use the script, look thouroughly through it to see if it is suitable for your needs and directory structure. There is plenty of comment contained in the scripts.

On my AMD 1800+ it took about 28 hours to finish the conversion, so you have time to grab a cup of coffee while the conversion is in progress.

Now for the shameless question:

I have the collection in CMX format, but I would like to have it in SVG format. Sketch can do this conversion. Error free. I now need just a Python script which does the same as my Corel script did. Looking at the Python code of Sketch, I don't think this is complicated, if you know which objects to create (?) and call (?)
I am not interested in learning Python at this moment, and I don't want to put the effort in when it is just for one project. Is there someone who wants to help me, and write the basic script? No directory parsing is needed, I can provide a list with all files to be converted. I don care whether it is all in Python, or a combination of bash and Python. I can take care of the bash part myself. Something like calling:
convert.py oldfile newfile
would be ideal

I know it is shameless to ask someone else to wrote something for me, but I hope I contributed my share with writing the CDR->CMX conversion.

Please reply.
jlinkels


All times are GMT -5. The time now is 03:30 AM.