Don't read in pdf data when it's not needed