|
From: | Vishnu Gopal |
Subject: | Re: [Swftools-common] pdf2swf: ERROR: ID Table overflow |
Date: | Sun, 8 Oct 2006 23:05:22 +0530 |
I have a couple of files that also generate this error.
If you have a diff of our modifications, I'll be glad to give it a try on them and let you know if it works fine.
JuanOn 10/7/06, Vishnu Gopal <address@hidden> wrote:Take a look at http://vysnu.com/files/swftest.pdf_______________________________________________
When I try to convert this file, using the verbose (-vv) option, I get lots (LOTS) of messages like this at every page:
VERBOSE Drawing 174x174 image at size 174x174 (17x17), 3 colors
VERBOSE drawImage 174x174, colorMap, no maskColors, inline=0
VERBOSE colorMap pixcomps:1 bits:8 mode:7
VERBOSE Drawing 174x174 image at size 174x174 (17x17), 3 colors
VERBOSE drawImage 174x174, colorMap, no maskColors, inline=0
VERBOSE colorMap pixcomps:1 bits:8 mode:7
VERBOSE Drawing 174x174 image at size 174x174 (17x17), 3 colors
VERBOSE drawImage 174x174, colorMap, no maskColors, inline=0
VERBOSE colorMap pixcomps:1 bits:8 mode:7
VERBOSE Drawing 174x174 image at size 174x174 (17x17), 3 colors
VERBOSE drawImage 174x174, colorMap, no maskColors, inline=0
VERBOSE colorMap pixcomps:1 bits:8 mode:7
VERBOSE Drawing 174x174 image at size 174x174 (17x17), 3 colors
VERBOSE drawImage 174x174, colorMap, no maskColors, inline=0
And it craps out at page 1 -3. with an ID Table Overflow.
I've analyzed the source and found out that indeed, the ID Table struct swfoutput_internal -> int currentswfid; exceeds 65535 because of the large number of shapes in there.
A trivial fix would be to just make it a long int and increase that check in static U16 getNewID (swf.c). I'm not a great C programmer, but anyways I'll make this change and recompile and get back to you with the results. Meanwhile any possible side-effects of this change would be appreciated.
Vish
Swftools-common mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/swftools-common
--
Powered by tofu
overflow.patch
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |