Scriptable PDF Export

This Thread may be of some use Martin, not sure about the different page sizes though.