swftools-common
[Top][All Lists]
Advanced

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

Re: [Swftools-common] setSelected on TextSnapshot


From: filip sound
Subject: Re: [Swftools-common] setSelected on TextSnapshot
Date: Sat, 28 Nov 2009 06:26:10 +0100

i've experienced the same. "sometimes", if transformations are applied to the loaded swf the selection vanishes. after a long time trying i had no success.
putting a transparent shape above the found word solved it for me. this way it's also possible to have links linking w/o pdf2swf link function (parsing text and searching for urls, email) and w/o having real links in the pdf.

hope that helped in some way.

yours,
  filip

On Fri, Nov 27, 2009 at 6:46 PM, DannyT <address@hidden> wrote:
Finding some very weird issues using setSelected on TextSnapshot class on a swf generated by pdf2swf.

Loading a swf into a flex 3 app and trying to search the text, the initial search works like a charm however any subsequent searches do not change the selected text. Stepping through the code everything seems to return the right values however the actual display of the highlighted text does not affect anything.

Assigning the TextSnapshot instance to a member variable on the class:

private var snapText:TextSnapshot;
...
this.snapText = this._loader.content["textSnapshot"] as TextSnapshot;

makes the selected text never change as I describe above whereas:

var snapText:TextSnapshot = this._loader.content["textSnapshot"] as TextSnapshot;

On the 2nd call will remove the selectedText but not re-set it again!

The only thing I've found is this bug: http://bugs.adobe.com/jira/browse/FP-1786?rc=1 which seems related but not quite the same issue.

Anyone wishing to see this in action feel free to play with our test project here:
http://dev.moov2.com/PDFTurnerFlex.zip

Would be very grateful if anyone can help!

--
http://danny-t.co.uk


reply via email to

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