[Top][All Lists]

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

Re: [Swftools-common] spaces disappear in swf (looks fine, but copy/past

From: Matt Cline
Subject: Re: [Swftools-common] spaces disappear in swf (looks fine, but copy/paste is dirty)
Date: Mon, 20 Jul 2009 16:00:39 -0700

What is your conversion command?

On Jul 20, 2009, at 3:51 PM, Mixotic <address@hidden> wrote:

no, what is this option for?

Are you using --flatten in your pdf2swf command?

On Jul 20, 2009, at 3:03 PM, Mixotic <address@hidden> wrote:


i have a problem with some pdfs (not all). when i convert them into swfs (as 3) and try to copy / paste text using the textsnapshot object, there are no spaces any more between the words. the text is displayed fine, but the textsnapshot object doesn't contain the spaces any more.

i have a pdf, the converted swf and a compilable mxml-file to force this bug.

you can download them here:


any ideas what's the problem?

here is the source code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="horizontal" xmlns:local="*" creationComplete="start()">

         private function start():void {
             var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener (Event.COMPLETE, onComplete);
             loader.load(new URLRequest("testpage.swf"));
                   private function onComplete(event:Event):void {
             var mc:MovieClip = event.target.loader.content;
             var snap:TextSnapshot = mc.textSnapshot;
             trace(snap.getText(0, 500));
   <mx:Canvas id="canvas"/>


reply via email to

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