Check Document of Known Format

The Recipe

The Code

<script src="https://gist.github.com/GroupDocsGists/08a150e11a1134ddf62df3ee5c31f165.js"></script>

Check Document of Unknown Format

The Recipe 

The Code

<script src="https://gist.github.com/GroupDocsGists/9e91a3feff7d250c3c206c177e4537d6.js"></script>