We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unable to open pdf file in browser

Hi All,

I have a legacy application with CGI using Perl on Linux which uses the following jar files :


in my application and I am using JDK jdk1.8.0_141.

When I use browse option for PDF file or Word from web application in browser PDF or worddoc is not displayed but instead I get only the following in my browser.

200 OK The request has succeeded

At the command prompt, ps -ef displays only this info:

/data/vivek/jdk1.8.0_141/bin/java -Dui=func_myfunc org.perl.inline.java.InlineJavaServer 0 localhost 0 true false false

Can you please help in resolving the above error.

Thanks and Regards,


Thanks for contacting support.

Aspose.Words and Aspose.Pdf provide the feature to create as well as manipulate existing Word and PDF files respectively and I am afraid they do not support the feature to display word or PDF files. However, please share some details regarding the approach through which you are trying to open these files. If possible, please share a sample project or code snippet, so that we can test the scenario in our environment.

Nevertheless, you may try using either of the following approaches

Converting files to Image format and then display in browser.

Converting files to HTML format and open HTML in browser.

Or you may try passing files to browser instance