swftools-common
[Top][All Lists]
Advanced

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

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


From: Vishnu Gopal
Subject: Re: [Swftools-common] pdf2swf: ERROR: ID Table overflow
Date: Sun, 8 Oct 2006 23:05:22 +0530

Hi!

Good & bad news. With the patch (attached) applied, pdf2swf manages to successfully build the swf. Bad news? It grows to around 200M, and takes around 10 minutes to do it =) Also, my 1M PDF got converted to an 8M swf.

pdf2swf seems to be doing something stupid in this instance tho -> since all these objects are similar (same?), why not make a reference to them instead of drawing a shape for them from scratch? I might take a look at this behavior soon. The prob is my C skills are abysmal and my flash knowledge is zero, so it might take awhile.

To apply the patch you have to dl the CVS version. I also had to tweak the Makefile to make it compile so those changes are in there too.

Take care,
Vish

On 10/7/06, Juan Pablo Di Lelle <address@hidden> wrote:
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.

  Juan

On 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

Attachment: overflow.patch
Description: Binary data


reply via email to

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