LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-13-2004, 04:37 PM   #1
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware 13 64bits
Posts: 374

Rep: Reputation: 31
CorelDraw File Support!??


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

thanks!
 
Old 08-21-2004, 08:01 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,062

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
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
 
Old 08-22-2004, 01:52 AM   #3
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware 13 64bits
Posts: 374

Original Poster
Rep: Reputation: 31
any help/comment/idea is appreciated!!
i'll try exporting to .svg

Thank You!
 
Old 01-15-2005, 09:37 PM   #4
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,062

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
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 )

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
 
Old 01-22-2005, 02:44 PM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,062

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CorelDraw mykrob Linux - Software 1 10-04-2004 10:00 PM
coreldraw in linux question salahuddin_66 Linux - Software 2 04-16-2004 03:36 AM
CorelDraw 11 for Linux!?? FreakboY Linux - Software 2 10-23-2003 08:06 PM
CorelDRAW for Linux on Slackware? quillwrite Linux - Software 2 10-12-2003 06:28 PM
anything close to coreldraw billy998168 Linux - Software 2 09-29-2002 04:49 PM


All times are GMT -5. The time now is 03:52 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration