On Sat, Nov 14, 2009 at 08:33:23PM +0100, Pablo Rodr?guez <oi...@web.de> wrote:
> I mean something like:
> 
>       import gfx
>       swf =  gfx.open("swf", "file.swf")
>       print swf.bbox

As different pages can have different dimensions in some file
formats, you'll need to extract a page first:

        import gfx
        swf =  gfx.open("swf", "file.swf")
        page1 = swf.getPage(1)
        print page1.width,page2.height

(Bounding boxes always start at (0,0) as far as gfx is
 concerned, so you only need the width/height)

Matthias



Reply via email to