Skip to content

Parse Corel Draw vector graphics from Python using libcdr

Notifications You must be signed in to change notification settings

mpds-io/pylibcdr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python bindings for libcdr

DOI

Intro

Simple Python bindings for the libcdr written by Dr. Andrey Sobolev.

Installation

First, the libcdr newer than v0.1.8 must be compiled.

E.g. on Debian:

apt-get install automake cmake libtool libboost-all-dev libicu-dev liblcms2-dev librevenge-dev libcppunit-dev zlib1g-dev
git clone https://git.libreoffice.org/libcdr
cd libcdr
./autogen.sh
./configure
make && sudo make install

Then: pip install git+https://github.com/mpds-io/pylibcdr

Usage

import sys
from pylibcdr import CDRParser
parser = CDRParser(sys.argv[1])
print(parser.dict)

License

Inherited from the libcdr (MPL 2.0).