-
Notifications
You must be signed in to change notification settings - Fork 23
/
org_sharextras_pdfviewer-context.xml
24 lines (23 loc) · 1.18 KB
/
org_sharextras_pdfviewer-context.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="org_sharextras_media-viewers_thumbnail.register.pdfpreview" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" ref="thumbnailRegistry" />
<property name="targetMethod" value="addThumbnailDefinition" />
<property name="arguments">
<list>
<bean class="org.alfresco.repo.thumbnail.ThumbnailDefinition">
<property name="name" value="pdf" />
<property name="mimetype" value="application/pdf" />
<property name="transformationOptions">
<!-- The thumbnail definition have transformationOptions mandatory -->
<!-- But there are none for pdf, so use SWFTransformationsOptions as dummy -->
<bean class="org.alfresco.repo.content.transform.swf.SWFTransformationOptions">
<property name="flashVersion" value="9" />
</bean>
</property>
</bean>
</list>
</property>
</bean>
</beans>