Search code examples
pdfcoldfusiondoc

Can pdf and doc files be opened in a browser using coldfusion


Can a pdf file or a doc/docx file be opened in a browser? I have a link which when clicked opens up the document as such in pdf and in MS word. But is it possible to open them in browser using Coldfusion?

thanks in advance


Solution

  • This is not something that ColdFusion can address. This has to do with the particular web browser being used and what related software a user has installed locally.

    If the user has a browser that supports PDF natively (e.g. Chrome) or they have the Adobe Acrobat browser plugin installed, then the PDF will open in the browser. Otherwise, it will open in the Acrobat program or any program they have that can view PDF documents. There is no MS Word plugin for browsers, so the browser will always try to open a .doc file in MS Word (if they have it installed) or any other program they have that can read that type of file.