[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: [Swftools-common] Question about textSnapshot
From: |
Matthias Kramm |
Subject: |
Re: Re: [Swftools-common] Question about textSnapshot |
Date: |
Sun, 8 Jun 2008 12:23:21 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Tue, Jun 03, 2008 at 10:18:36PM +0200, Marc Hämmerle <address@hidden> wrote:
> is there a way to convert all static text in a PDF to dynamic
> (editable, stylable, selectable) AS3 TextFields using pdf2swf (or
> swfc)? I have to select multiple passages and highlight each of them
> with a seperate color. Multiple selections with different colors are
> not possible with a simple TextSnapshot AFAIK and as far as i have
> tried (multiple selections work, but the last setSelectColor gets
> applied to the *whole* selection)..
I don't know of a way to do that using Flash player's standard
text selection logic.
Maybe it's possible to do your own text highlighting?
Rendering the highlighting boxes is probably easy- getting the
glyph's coordinates might be more difficult, but
TextSnapshot.getTextRunInfo() looks promising.
HTH,
Matthias