pdf2swf 转换时报错。This file is too complex to render- SWF only supports 65536 shapes at once
2015-05-05 20:23
736 查看
pdf2swf 转换时报错。This file is too complex to render- SWF only supports 65536 shapes at once
在使用swftools转换pdf 到swf的时候报错,查询 baidai 了一下。
有如下说明:
if the pdf contains too many images / shapes, pdf2swf will fail with this error :
ERROR Thisfileistoocomplextorender-SWFonly supports 65536 shapes at once
There is a very simple fix : add “-s poly2bitmap” to the options given to the transformer’s commandMap in swf-transform-context.xml
The issue is also discussed in ETHREEOH-3023 , and it can be easily reproduced with the pdf attached to ETHREEOH-3023 .
With the added options “-s poly2bitmap” (which means converts pdf graphics to bitmaps) allows the transformation to complete successfully, so maybe we could add this option by default.
Cheers,
Romain
问题描述:在线浏览的时候报【转换后的文件不存在】,查看后台是swf 文件转换失败导致的。
SWF转换问题: ERROR Thisfileistoocomplextorender-SWFonly supports 65536 shapes at once
经查询是,是后台的程序没有做判断及添加相应的参数进行处理。
目前(20120319)后台的处理命令为:
pdf2swf 1.pdf -o 1.swf -f -T 9 -G
需要添加参数 ,下面列出三种转换的优先级,因为和转换的速度有关系,所以不要都用下面的啦
pdf2swf 1.pdf -o 1.swf -f -T 9 -G -s poly2bitmap 只对文件中的图形转成点阵
pdf2swf 1.pdf -o 1.swf -f -T 9 -G -s bitmap 对everything 转成点阵
pdf2swf 1.pdf -o 1.swf -f -T 9 -G -s enablezlib bitmap 对everything 转成点阵,并通过enablezlib压缩
处理这个问题可以按上面的方法,在转换时加入参数-s poly2bitmap 或者其他的来将文件中的图形转成点阵,这个是由于文件大太或者文件图形过多而引起的异常,所以建议在转换的过程时加入了文件的大小的判断,当文件过大时,就加入这个参数,不然就直接转,因为我测试的时候,不加入这个参数时,转换的速度快一点。
相关文章推荐
- 解决 pdf2swf 转换时报错。This file is too complex to render- SWF only supports 65536 shapes at once
- pdf2swf 转换时报错。This file is too complex to render- SWF only supports 65536 shapes at once
- pdf2swf 转换时报This file is too complex to render- SWF only supports 65536 shapes at once
- 记一次环境变量导致的elasticsearch启动错误:max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
- SVN 报错:svn: E155021: This client is too old to work with the working copy at..... (format '31').
- This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended
- This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended
- svn st 得到svn: E155021: This client is too old to work with the working copy at
- mac 提示This client is too old to work with the working copy at...
- svn: E155021: This client is too old to work with the working copy at..... No changes detected
- "maximum open file descriptors" is set to at least 65536
- max file descriptors [4096] for elasticsearch process likely too low, increase to at least [65536]
- SVN版本问题:svn: E155021: This client is too old to work with the working copy at
- this file is read-only.you must save to a different filename
- The installer cannot read the mwinstall.dll file, This is probably due to a CD reader which can only read files with an eight.th
- 【项目成长日记】不懂事的SVN——This client is too old to work with the working copy at ()
- svn: E155021 this client is too old to work with the working copy at
- 普通用户操作tomcat项目时报:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program
- android studio This client is too old to work with the working copy at
- SVN版本问题:svn: E155021: This client is too old to work with the working copy at