1. Preview of HTML files: there are always problems with MSIE, so a basic preview (standard W3C tags and no javascript) would always allow for quick and nice pagepreview
2. When preview on a PDF file, thre's always a window asking to open/save the file. Either remove PDF from preview format or implement your own PDF viewer. But DO not assume everybody has Adobe software, as I, for instance, don't have any.