if the pdf contains too many images / shapes, pdf2swf will fail with this error :
ERROR This file is too complex to render- SWF only 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
上面是在使用swftools工具时,转换大文件时发生了一个怪现象:我先将大文件word转为pdf,再将pdf转为swf,由pdf转换为swf过程中,竟然没有输入转换后的swf文件,后来用命令行来转换一下,才知道那个pdf文件太大了,所以转换时发生了异常:
ERROR This file is too complex to render- SWF only supports 65536 shapes at once
处理这个问题可以按上面的方法,在转换时加入参数-s poly2bitmap来将文件中的图形转成点阵,这个是由于文件大太或者文件图形过多而引起的异常,所以我在转换的过程时加入了文件的大小的判断,当文件过大时,就加入这个参数,不然就直接转,因为我测试的时候,不加入这个参数时,转换的速度快一点。
分享到:
相关推荐
Concurrent Manager Fails to Start With Error Could not initialize the Service Manager FNDSM_{HOSTNAME}_{SID}(Doc ID 735148.1)
To make use of either more or less strict isolation levels in applications, locking can be customized for an entire session by setting the isolation level of the session with the SET TRANSACTION ...
Parameters that are both input and output (often classes/structs) muddy the waters, and, as always, consistency with related functions may require you to bend the rule. Names and Order of Includes ...
We convince ourselves that talent combined with a strong work ethic is the key to getting ahead, but also realize that combination often fails to yield results, without any deeper understanding as to...
Committed pages are those pages that when accessed in the end translate to pages in memory. Those pages may however have to be faulted in from a page file or memory mapped file. Backing Store Backing ...
cp beans apple dir2 把beans、apple文件复制到dir2目录下 cp -i beans apple 增加是否覆盖的提示 mv 移动或重命名文件/目录 用法 mv [-f] [-i] f1 f2 mv [-f] [-i] f1 ... fn d1 mv [-f] [-i] d1 d2 mv ...
- The field "Default Gateway" has been added to the NetLink's configuration property page - The string write from the OPC Server sometimes failed . This bug has been fixed - After driver uninstall...
* The assignment of a LargeInt field to another LargeInt field fails when the destination and source are both TLargeIntFields (Quality Central 6393).* When Params are passed from a TClientDataSet to ...
o Fixed the problem with sending the data to stdout (when the filename is empty string). * Version 1.93: o Updated the internal country names (added more 14 countries) that are used for ...
You use the `OPENQUERY` Transact-SQL statement within the stored procedure to access data from SQL2, but the query fails when executed. **Question:** What should you do to troubleshoot the cause of ...
For those who are not familiar with programming or the deeper workings of the web, web scraping often looks like a black art: the ability to write a program that sets off on its own to explore the ...
Two solutions are available when Word-2-CHM fails to open the Word document. Solution I: Open the Word document in Microsoft Word and save it as “Web File”. Solution II: Temporary disabled the anti-...
The new functions are assigned higher ordinal numbers than the earlier commands, so the ordinal numbers assigned to routines in the earlier VsDrvr routines are preserved. This means one may use the ...
2. If company secrets are disclosed to the Licensee during the use of his license, he undertakes to keep these secrets for an unlimited time. The Licensee especially undertakes to keep secret software...
default options) to BX_CPU_LEVEL=6 with SSE2 enabled. - CPU - Implemented PCLMULQDQ AES instruction - Implemented X2APIC extensions / enable extended topology CPUID leaf (0xb), in order to enable...
When BGP fails, portions of the Internet may become unusable for a period of time ranging from minutes to hours. Most of the risk to BGP comes from accidental failures, but there is also a ...
When off it scans for the 'FILE' as encrypted text to find the start of a script Default:OFF 'Start Offset to Script Data' Here you can manually specify the offset were the script starts. ...
The default is that every button in a form causes validation logic to run, and if validation fails, the validation logic blocks submission of the form. Enabling validation selectively for buttons ...