Free Support Forum - groupdocs.com

Reg GroupDocs.Viewer Java Library API to take Tiff/PDF InputStream as input and returns html page as stream


#1

Hi,


I am looking for the GroupDocs.Viewer Java Library API to integrate with my application for the below scenario.

I need to pass Tiff/PDF document InputStream to GroupDocs.Viewer API and expecting the either the response renders with the corresponding html page viewer or expecting the return value as html page input stream.

But i am unable to find such API in GroupDocs.Viewer java library to integrate with my application.

Please let me know which method in ViewerHandler is suitable in this scenario.


Thanks & Regards
Vijay

#2

Hi,


Resolved out of the forum.

Evgen Efimov


http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+


#3

Hi Evgen,


I am getting the below issue in my spring config.xml when i included mvc:annotation-driven and mvc-resources and spa:property-placeholder-annotations as per groupdocs.viewer guidelines to make sure ApplicationConfig gets autowired.

Referenced file contains errors (http://code.google.com/p/spring-property-annotations/spring-property-annotations-1.0.xsd). For more information, right click on the message in the
Problems View and select “Show Details…“


Below is my config.xml how schemas got included.



Referenced file contains errors (http://code.google.com/p/spring-property-annotations/spring-property-annotations-1.0.xsd). For more information, right click on the message in the
Problems View and select “Show Details…”

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=“http://www.springframework.org/schema/beans
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance
xmlns:mvc=“http://www.springframework.org/schema/mvc
xmlns:spa=“http://code.google.com/p/spring-property-annotations
xmlns:context=“http://www.springframework.org/schema/context
xmlns:tx=“http://www.springframework.org/schema/tx
xmlns:ehcache=“http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
xmlns:task=“http://www.springframework.org/schema/task
xmlns:aop=“http://www.springframework.org/schema/aop
xsi:schemaLocation=“http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.0.xsd
http://code.google.com/p/spring-property-annotations
http://code.google.com/p/spring-property-annotations/spring-property-annotations-1.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd”>
<aop:aspectj-autoproxy />
<context:component-scan base-package=“com.groupdocs”/>


<mvc:annotation-driven />
<mvc:resources mapping=”/assets/**” location=“classpath:/assets/” />
<spa:property-placeholder-annotations location=“classpath:application.properties” />


#4
Hello ,

Thank you for your inquiry.

We have checked your scenario and found out that you missed some configuration, could you please try to add such code to your config.xml:


Also you can check how configured our spring sample here .

Best regards
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+