How do I know if a File type is PDF?
<ul>
<li><p>This answer <a href="http://stackoverflow.com/questions/941813/how-can-i-determine-if-a-file-is-a-pdf-file">How can I determine if a file is a PDF file? </a> recommends to download another library, but my requirement is that I just need to check if a file is directory is of type PDF or not</p></li>
<li><p>Using complete library for this use looks like overkill</p></li>
<li>Are there any ways to know that a Java File is of type PDF?</li>
</ul>
