basic pdf export functionality