Add pdf support to dispatch