[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swftools-common] Question about textSnapshot
From: |
Jared Friedman |
Subject: |
[Swftools-common] Question about textSnapshot |
Date: |
Thu, 6 Sep 2007 11:13:15 -0700 |
Hi,
I have a question regarding the access to textSnapshot object for text
selecting in a SWF version 9 file generated by the latest dev snapshot
of pdf2swf.
I generate a SWF file from a PDF containing some text rendered with a
known TrueType 1 font. I embed the font using the -f option to have a
DEFINEFONT2 tag in the SWF file. I have modified the swf compiler to
insert a dynamic textfield using ST_DEFINEEDITTEXT containing one
glyph of the embedded font and inserting it in a Sprite using
ST_PLACEOBJECT2. I was hoping that text selection would work on that
text even when that SWF file is loaded at run-time in another SWF
file. It doesn't seems to be the case. " textSnapshot.findText()"
works on the Sprite containing that static text/dynamic text field,
but none of the text selection methods works. It is like if extracting
the metrics about the glyph/font was not performed by the loading SWF
file.
Am I missing something here?
Thanks,
JR
- [Swftools-common] Question about textSnapshot,
Jared Friedman <=