2012-08-06 115 views
1

我有一個與我的Alfresco 3.4.e共享應用程序的問題。當您上傳文件(例如PDF文件)時,其大小很大(在這種情況下爲10MB),則「通過瀏覽器預覽文件」選項不起作用。窗口打開,文檔正在處理中,然後崩潰。 當您嘗試預覽像1mb文件這樣的小文件時,您不會遇到任何問題。Alfresco 3.4.e分享:大的PDF文件預覽不起作用

我已經對此問題進行了研究,顯然您可以修改「內容轉換限制」。下面是該文檔的鏈接,我refered到:

https://wiki.alfresco.com/wiki/Content_Transformation_Limits

綜上所述,所有你必須通過在「內容服務-context.xml的」文件設置屬性做,「縮略圖-Services-context.xml的」。 這裏有屬性,你必須設置:

  • timeoutMs
  • readLimitTimeMs
  • maxSourceSizeKBytes
  • readLimitKBytes
  • pageLimit
  • MAXPAGES

然而,所有這些屬性都現有的例如在th e類"org.alfresco.repo.content.transform.magick.ImageTransformationOptions"或類 「org.alfresco.repo.content.transform.TextToPdfContentTransformer」。 當這些屬性設置爲不可寫,並且我查看了源並且它們根本不存在時,我遇到了一個錯誤。

我有另一種理論,其中文件是複雜的被轉換(超過100頁,大量的圖像和樣式...)。 這裏是文檔轉換和預覽嘗試後寫入錯誤日誌:

ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 07060002 Wrapped Exception (with status template): 07060007 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 07060006 Content conversion failed: 
    reader: ContentAccessor[ contentUrl=store://2012/8/6/10/57/cd79670a-6210-4ce6-9af6-563d224c278f.bin, mimetype=application/pdf, size=20578433, encoding=utf-8, locale=fr_FR] 
    writer: ContentAccessor[ contentUrl=store://2012/8/6/15/9/d44c8099-06ac-4c8f-8021-edb8f48c838b.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=fr] 
    options: [email protected]3f 
org.springframework.extensions.webscripts.WebScriptException: 07060002 Wrapped Exception (with status template): 07060007 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 07060006 Content conversion failed: 
    reader: ContentAccessor[ contentUrl=store://2012/8/6/10/57/cd79670a-6210-4ce6-9af6-563d224c278f.bin, mimetype=application/pdf, size=20578433, encoding=utf-8, locale=fr_FR] 
    writer: ContentAccessor[ contentUrl=store://2012/8/6/15/9/d44c8099-06ac-4c8f-8021-edb8f48c838b.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=fr] 
    options: org.alfresco.service.cmr.repository.T[email protected] 
     at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:758) 
     at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:202) 
     at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:383) 
     at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381) 
     at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:436) 
     at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:466) 
     at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:304) 
     at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333) 
     at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189) 
     at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118) 
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
     at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58) 
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) 
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) 
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) 
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) 
     at java.lang.Thread.run(Thread.java:619) 
Caused by: org.alfresco.scripts.ScriptException: 07060007 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 07060006 Content conversion failed: 
    reader: ContentAccessor[ contentUrl=store://2012/8/6/10/57/cd79670a-6210-4ce6-9af6-563d224c278f.bin, mimetype=application/pdf, size=20578433, encoding=utf-8, locale=fr_FR] 
    writer: ContentAccessor[ contentUrl=store://2012/8/6/15/9/d44c8099-06ac-4c8f-8021-edb8f48c838b.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=fr] 
    options: [email protected]3f 
     at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:194) 
     at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:282) 
     at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102) 
     at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:981) 
     at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:148) 
     ... 24 more 
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 07060006 Content conversion failed: 
    reader: ContentAccessor[ contentUrl=store://2012/8/6/10/57/cd79670a-6210-4ce6-9af6-563d224c278f.bin, mimetype=application/pdf, size=20578433, encoding=utf-8, locale=fr_FR] 
    writer: ContentAccessor[ contentUrl=store://2012/8/6/15/9/d44c8099-06ac-4c8f-8021-edb8f48c838b.bin, mimetype=application/x-shockwave-flash, size=0, encoding=UTF-8, locale=fr] 
    options: [email protected]3f 
     at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:177) 
     at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:555) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     at java.lang.reflect.Method.invoke(Method.java:597) 
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) 
     at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:125) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:160) 
     at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 
     at $Proxy42.transform(Unknown Source) 
     at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine.render(AbstractTransformationRenderingEngine.java:71) 
     at org.alfresco.repo.rendition.executer.AbstractRenderingEngine.executeRenditionImpl(AbstractRenderingEngine.java:497) 
     at org.alfresco.repo.rendition.executer.AbstractRenderingEngine$2.doWork(AbstractRenderingEngine.java:429) 
     at org.alfresco.repo.rendition.executer.AbstractRenderingEngine$2.doWork(AbstractRenderingEngine.java:410) 
     at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508) 
     at org.alfresco.repo.rendition.executer.AbstractRenderingEngine.executeImpl(AbstractRenderingEngine.java:409) 
     at org.alfresco.repo.rendition.executer.AbstractRenderingEngine.executeImpl(AbstractRenderingEngine.java:373) 
     at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:133) 
     at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:749) 
     at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:675) 
     at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:540) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     at java.lang.reflect.Method.invoke(Method.java:597) 
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) 
     at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:217) 
     at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:184) 
     at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 
     at $Proxy34.executeAction(Unknown Source) 
     at org.alfresco.repo.rendition.RenditionServiceImpl.executeRenditionAction(RenditionServiceImpl.java:233) 
     at org.alfresco.repo.rendition.RenditionServiceImpl.render(RenditionServiceImpl.java:182) 
     at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnailNode(ThumbnailServiceImpl.java:449) 
     at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.access$000(ThumbnailServiceImpl.java:55) 
     at org.alfresco.repo.thumbnail.ThumbnailServiceImpl$1.doWork(ThumbnailServiceImpl.java:146) 
     at org.alfresco.repo.thumbnail.ThumbnailServiceImpl$1.doWork(ThumbnailServiceImpl.java:143) 
     at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508) 
     at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnail(ThumbnailServiceImpl.java:141) 
     at org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnail(ThumbnailServiceImpl.java:120) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     at java.lang.reflect.Method.invoke(Method.java:597) 
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) 
     at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:178) 
     at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 
     at $Proxy111.createThumbnail(Unknown Source) 
     at org.alfresco.repo.jscript.ScriptNode.createThumbnail(ScriptNode.java:2410) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     at java.lang.reflect.Method.invoke(Method.java:597) 
     at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155) 
     at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243) 
     at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76) 
     at org.mozilla.javascript.gen.c12._c1(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js:61) 
     at org.mozilla.javascript.gen.c12.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js) 
     at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108) 
     at org.mozilla.javascript.gen.c12._c0(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js:101) 
     at org.mozilla.javascript.gen.c12.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js) 
     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) 
     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) 
     at org.mozilla.javascript.gen.c12.call(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js) 
     at org.mozilla.javascript.gen.c12.exec(file:/C:/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js) 
     at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:472) 
     at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:190) 
     ... 28 more 
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 07060005 Transformation failed - status indicates an error: 
Execution result: 
    os:   Windows Server 2008 R2 
    command: [C:/Alfresco/swftools/pdf2swf.exe, -T, 9, -s, poly2bitmap,subpixels=72, C:\Alfresco\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_source_1313428204114423249.pdf, -o, C:\Alfresco\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_target_920011681678277152.swf] 
    succeeded: false 
    exit code: 1 
    out:  NOTICE processing PDF page 1 (595x841:0:0) (move:0:0) 
NOTICE File contains pbm pictures 
NOTICE File contains jpeg pictures 
NOTICE processing PDF page 2 (595x841:0:0) (move:0:0) 
NOTICE processing PDF page 3 (595x841:0:0) (move:0:0) 
NOTICE 
    err: 
     at org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker.transform(RuntimeExecutableContentTransformerWorker.java:272) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     at java.lang.reflect.Method.invoke(Method.java:597) 
     at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:71) 
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) 
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) 
     at $Proxy40.transform(Unknown Source) 
     at org.alfresco.repo.content.transform.ProxyContentTransformer.transformInternal(ProxyContentTransformer.java:68) 
     at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:161) 
     ... 125 more 

如果你看日誌,問題可能被鏈接到pdf2swf出故障由於高字節字符或特價字符。

因此,如果您有任何想法...

在此先感謝。

+2

附註:請不要使用3.4.e社區。穩定的3.4社區版本是3.4.d. 3.4.e被定義爲Activiti集成的「預覽版」。 – 2012-08-06 14:13:25

回答

0

如果您回頭看維基的第一行,您會注意到該屬性限制適用於企業版本3.4.8或4.我不確定它適用於版本3.4.d.但是,無論如何,那不是重點。這些限制是在最近的版本中創建的,以避免您從pdf2swf.exe獲得的錯誤,並將靜態圖像作爲預覽顯示,可能不像普通的Flash預覽那樣漂亮,但至少它會讓您預覽。這個功能可能無法在3.4d可用,儘管它可能是可用的版本4

,您有如下語句中的真正的問題(我做了一個短一點的可讀性):

C:/Alfresco/swftools/pdf2swf.exe, -T, 9, -s, poly2bitmap,subpixels=72, *C:\Alfresco\tomcat\temp\Alfresco\your_source_file.pdf*, -o, *C:\Alfresco\tomcat\temp\Alfresco\generated_flash_preview.swf* 

您可能想要在命令行中輸入它,並查看會發生什麼。如果出現錯誤,您可能需要嘗試不同版本的pdf2swf.exe。如果你沒有得到一個錯誤,並且事情得到很好的轉換,你可能需要爲Alfresco的Java堆(參數-Xmx)分配更多的內存,確保你有足夠的硬盤空間,並且,當然,你有足夠的空間物理RAM內存。

+0

謝謝,它確實是不符合我需求的配置。我的新配置在我的答案上。 – user1194442 2012-08-08 08:34:19

1

即使在您的版本中實施了限制,您的即裝即用安裝不應有任何轉換限制。所以除非你有特別的配置限制,否則這不太可能是你問題的原因。

更可能的是pdf2swf根本無法處理您上傳的文件。這看起來與您從日誌發佈的堆棧跟蹤一致,但請注意,Alfresco將截斷錯誤流。如果您真的想看到完整的錯誤,那麼請執行它提供的命令並在命令提示符下交互式運行它。

你沒有提到你已經安裝了SWFTools的版本,但是這將是一個很好的開始。你可以嘗試更新的版本或SVN快照,看看這是否有幫助。

最後,您還可以更改傳遞給pdf2swf的命令行參數,儘管您需要進行一些研究以瞭解哪些參數適用於您要上傳的內容類型。

Alfresco webapp中的文件alfresco/subsystems/thirdparty/default/swf-transform.properties中設置了以下默認設置,但您可以在自定義alfresco-global.properties文件中覆蓋它們。

# This option on pdf2swf improves the transformation of graphics-heavy pdfs. See ALF-3580. 
# poly2bitmap improves the chances of successful transformation. On its own it reduces 
# the resolution of embedded images. subpixels sets the dpi for embedded images. 
# zoom introduced and -s added before each option (ALF-9417). 
swf.encoder.params=-s zoom=72 -s ppmsubpixels=1 -s poly2bitmap=1 -s bitmapfonts=1 

評論中引用的問題(在http://issues.alfresco.com)也可能是感興趣的。

+0

謝謝,我修改了你的建議,它的工作正常。我已經用我當前的配置回覆了這篇文章。 – user1194442 2012-08-08 08:33:32

1

好的,

所以首先,謝謝你的答案! 這真的幫了我很多。

的確,問題來自pdf2swf。 Alfresco的默認配置不適合大的PDF文件。一個,我有包含了太多豐富的人物,所以默認參數的‘swf-transform.properties’的配置:

swf.encoder.params=-s zoom=72 -s ppmsubpixels=1 -s poly2bitmap=1 -s bitmapfonts=1 

現在我可以:

swf.encoder.params=-s poly2bitmap,subpixels=72 

被取代預覽我的大PDF文件沒有任何問題。

再次感謝您的幫助。