Export curves to pdf

See my feedback here: Error when connecting page size - #4 by em_8

The pdf functionality in particular relies on a windows library, which means support for mac involves a complete rewriting of the code. I will let you know when we have updates about this topic.