Changed screen capture to record PDF rather than PNG