2012-08-06 113 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文件没有任何问题。

再次感谢您的帮助。