I was attempting to use the existing folder dmdocuments from docman. One reason this won't work is because docman puts an htaccess file blocking direct access. Apparently it was still blocked by something else, so I created a new folder and moved the documents to be previewed and now it works as advertised.