Use typearea for setting the paper size.

Closes #17.