take a snapshot pdf not working