how to recognize PDF format?
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
how to recognize PDF format?
===

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