bigbluebutton-Github/bigbluebutton-web/grails-app/conf/spring/doc-conversion.xml
Richard Alam 310e330b97 - can now handle PDF
- need to figure out why office doc throws SI exception

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@3154 af16638f-c34d-0410-8cfa-b39d5352b314
2009-12-29 20:29:17 +00:00

94 lines
5.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/integration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:jms="http://www.springframework.org/schema/integration/jms"
xmlns:stream="http://www.springframework.org/schema/integration/stream"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd
http://www.springframework.org/schema/integration/jms
http://www.springframework.org/schema/integration/jms/spring-integration-jms-1.0.xsd
http://www.springframework.org/schema/integration/stream
http://www.springframework.org/schema/integration/stream/spring-integration-stream-1.0.xsd">
<!--beans:bean id="documentConversionServiceGateway" class="org.bigbluebutton.presentation.DocumentConversionServiceGateway">
<beans:property name="presentationService" ref="presentationService"/>
<beans:property name="documentConversionService" ref="documentConversionService"/>
</beans:bean-->
<gateway id="documentConversionService" service-interface="org.bigbluebutton.presentation.DocumentConversionService"/>
<channel id="convertChannel"/>
<filter method="isSupported" input-channel="convertChannel" output-channel="docRouterChannel" discard-channel="discardChannel">
<beans:bean class="org.bigbluebutton.presentation.SupportedDocumentFilter">
<beans:property name="conversionProgressNotifier" ref="conversionProgressNotifier"/>
</beans:bean>
</filter>
<channel id="docRouterChannel"/>
<router input-channel="docRouterChannel">
<beans:bean class="org.bigbluebutton.presentation.FileTypeRouter"/>
</router>
<channel id="officeFileChannel"/>
<channel id="pdfFileChannel"/>
<gateway id="conversionProgressNotifier" service-interface="org.bigbluebutton.presentation.ConversionProgressNotifier"/>
<service-activator input-channel="officeFileChannel" method="convertOfficeToPdf">
<beans:bean class="rg.bigbluebutton.presentation.imp.OfficeToPdfConversionService"/>
</service-activator>
<service-activator input-channel="pdfFileChannel" ref="slidesGenerationService" method="generateSlides"/>
<channel id="discardChannel"/>
<channel id="conversionProgressChannel"/>
<jms:outbound-channel-adapter id="jmsOut" destination="UpdatesQueue" channel="conversionProgressChannel"/>
<beans:bean id="pageExtractor" class="org.bigbluebutton.presentation.imp.GhostscriptPageExtractor">
<beans:property name="ghostscriptExec" value="${ghostScriptExec}"/>
<beans:property name="noPdfMarkWorkaround" value="${noPdfMarkWorkaround}"/>
</beans:bean>
<beans:bean id="imageMagickPageConverter" class="org.bigbluebutton.presentation.imp.ImageMagickPageConverter">
<beans:property name="imageMagickDir" value="${imageMagickDir}"/>
</beans:bean>
<beans:bean id="png2SwfConverter" class="org.bigbluebutton.presentation.imp.Png2SwfPageConverter">
<beans:property name="swfToolsDir" value="${swfToolsDir}"/>
</beans:bean>
<beans:bean id="pageCounter" class="org.bigbluebutton.presentation.imp.Pdf2SwfPageCounter">
<beans:property name="swfToolsDir" value="${swfToolsDir}"/>
</beans:bean>
<beans:bean id="pageCounterService" class="org.bigbluebutton.presentation.imp.PageCounterService">
<beans:property name="pageCounter" ref="pageCounter"/>
</beans:bean>
<beans:bean id="pdf2SwfPageConverter" class="org.bigbluebutton.presentation.imp.Pdf2SwfPageConverter">
<beans:property name="swfToolsDir" value="${swfToolsDir}"/>
</beans:bean>
<beans:bean id="imageConvSvc" class="org.bigbluebutton.presentation.imp.PdfPageToImageConversionService">
<beans:property name="pageExtractor" ref="pageExtractor"/>
<beans:property name="pdfToImageConverter" ref="imageMagickPageConverter"/>
<beans:property name="imageToSwfConverter" ref="png2SwfConverter"/>
</beans:bean>
<beans:bean id="thumbCreator" class="org.bigbluebutton.presentation.imp.ThumbnailCreatorImp">
<beans:property name="imageMagickDir" value="${imageMagickDir}"/>
<beans:property name="blankThumbnail" value="${BLANK_THUMBNAIL}"/>
</beans:bean>
<beans:bean id="slidesGenerationService" class="org.bigbluebutton.presentation.imp.PdfToSwfSlidesGenerationService">
<beans:property name="counterService" ref="pageCounterService"/>
<beans:property name="pageConverter" ref="pdf2SwfPageConverter"/>
<beans:property name="pdfPageToImageConversionService" ref="imageConvSvc"/>
<beans:property name="thumbnailCreator" ref="thumbCreator"/>
<beans:property name="blankSlide" value="${BLANK_SLIDE}"/>
<beans:property name="maxConversionTime" value="${maxConversionTime}"/>
<beans:property name="conversionProgressNotifier" ref="conversionProgressNotifier"/>
</beans:bean>
</beans:beans>