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 :

Aspose.Cells.jar
aspose.pdf.jar
aspose-slides-1.9.3.2.jar
aspose-slides-2.0.0.6-20091007.jar
Aspose.Words.jdk15.jar
dom4j-1.6.1.jar

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,
Vivek

@Vivek1717,

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.
https://docs.aspose.com/display/pdfjava/Convert+PDF+Page+to+Image

Converting files to HTML format and open HTML in browser.
https://docs.aspose.com/display/pdfjava/Convert+PDF+to+HTML+format

Or you may try passing files to browser instance