swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] pdf2swf: ERROR: ID Table overflow


From: Vishnu Gopal
Subject: [Swftools-common] pdf2swf: ERROR: ID Table overflow
Date: Sat, 7 Oct 2006 17:40:55 +0530

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]