On Tue, Jun 03, 2008 at 10:18:36PM +0200, Marc Hämmerle <[EMAIL PROTECTED]> 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
