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 thelibcdrwritten byDr. Andrey Sobolev.

Installation

First, thelibcdrnewer thanv0.1.8must 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 /mpds-io/pylibcdr

Usage

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

License

Inherited from thelibcdr(MPL 2.0).