Style pdf links and add captions