Is there any way of checking if a byte[] is a pdf without opening?
I have some code to display a list of byte[] as pdf thumbnails. I previously knew all the byte[] w
As far as I know all PDF's start with %PDF, so you could check the first bytes against this string.
%PDF