swftools icon indicating copy to clipboard operation
swftools copied to clipboard

swfrender and gfx2gfx definebitsjpeg not yet supported

Open flanter21 opened this issue 2 years ago • 3 comments

I'm trying to render some old swf files to a pdf for my own use. However, I'm having difficulty with a subset (around 15%) of the pages, which are throwing this error.

rfxswf: extracting from definebitsjpeg not yet supported

Normally, I'd think that it just isn't supported by swftools as reported. However, since I could extract it using swfextract, I looked further. I found this issue is replicated in swfrender but also I found that I can work around this by simply using gfx2gfx to convert from a swf to a swf, which additionally can work around this error. fatal exception: [1106] PDF_encoding_set_char: Integer parameter 'slot' has bad value 256

However, in most of the cases, I get this error and then none of the images appear in the output.

Warning: Shape doesn't start with a moveTo
Warning: Shape doesn't start with a moveTo

Is there any other known workaround? I've tried looking through the source code but I'm very unfamiliar with it. I also note that the converted swfs of the ones that got this error don't display correctly in ruffle, even though the original does.

flanter21 avatar Mar 27 '24 12:03 flanter21

Many thanks for your report, @flanter21.

There is a detail that is not clear to me from your description.

Are your converted SWFs displayed correctly with latest Flash Projector?

Many thanks for your help.

ousia avatar May 19 '24 11:05 ousia

Many thanks for your report, @flanter21.

There is a detail that is not clear to me from your description.

Are your converted SWFs displayed correctly with latest Flash Projector?

Many thanks for your help.

It's been a while and I can't remember exactly what files I used, but at the moment, I can't seem to replicate the converting workaround. But in trying now, the converted files do not display properly in flash projector. That being said, I am still able to get jpegs using swfextract. I also apologise for confusing wording of the original issue. Sorry.

flanter21 avatar May 19 '24 22:05 flanter21

No need to apologize. Many thanks for your fast reply.

I wonder whether you could share a minimal SWF sample (replacing the .swf extension with .txt, to attach it here).

All commands as you invoked them would also help to see (or eventually fix) what might be going on..

Many thanks for your help.

ousia avatar May 20 '24 15:05 ousia