hello,
given a stream of bytes, how can i tell if this stream contains a pdf document or something else?
i am using .net and c# but it does not matter.
thanks konstantin
hello,
given a stream of bytes, how can i tell if this stream contains a pdf document or something else?
i am using .net and c# but it does not matter.
thanks konstantin
A PDF file starts with an ASCII string %PDF-1.3
or something similar, depending on what PDF version it actually is.