swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] Hyperlink Coords


From: Matthias Kramm
Subject: Re: [Swftools-common] Hyperlink Coords
Date: Wed, 24 Nov 2010 12:54:07 -0800
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Nov 24, 2010 at 07:30:16PM +0000, DannyT <address@hidden> wrote:
> Apologies if this is OT but can anyone suggest a means of extracting
> hyperlink coordinates per page of a converted pdf? Alongside the swf output
> we're now also exporting a png but want to generate imagemaps to add back in
> the hyperlinks. Does any of the swftools tools help acheive this?

More or less- here's what you can do:
Use "swfdump -u file.swf" to look for lines like

[007]        61 DEFINEBUTTON defines id 0016
                uses IDs: <id1>,<id2>,<id3>,<id4>

Then run "swfdump -b file.swf" to look up the respective ids <id1>:

[020]        35 DEFINESHAPE3 defines id <id1>
                 bbox [0.00, 100.00, 100.00, 200.00]

This will give you the hyperlink coordinates (boxes) for each
for the links.
Lines like

[001]         0 SHOWFRAME 2 (00:00:03,994)

will be seperating the pages.

Matthias



reply via email to

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