I'm converting to GdViewer from another thumbnailer and am trying to match abilities so as to minimize the impact on my application. The first question (there will be others!) is if there's a way to tell if a file is thumbnailable without getting the "This PDF seems to be corrupted" message.
Using the Imager, I first attempt to CreateImageFromFile. If that fails (status != 0) I then attempt to DisplayFromPdfFile. This is what causes the error message to appear. I don't want to look at the file extension because in my world that could be "wrong" or missing. I just want to verify if a file is thumbnailable or not.
