Hi Mark,
You are right about the SWF strings program, there appear to be issues
with some pdfs. When I tried it initially, I got sensible output from
the swfs I was trying. I've checked a couple more and am getting the
???'s you described on most of them. Another suggestion is the PDF
version causing issues? I know some mags here are produced from Acrobat
5 and some Acrobat 8...
So I guess I may look at extracting strings earlier in the process from
the PDFs if I can. Like I said, the intention is to get to the right
page using this technique and then highlight the words on the page.
If I can find any clues about how to search a page and highlight words
I'll let you know too. I'm using Flex to embed the SWF's inside my
"master" movie (using a class derived from SWFLoader) so I am almost
certainly looking for the same thing you are.
Cheers,
Pete
Mark A. Lowe wrote:
Hey Pete,
Thanks for your response. I hadn't actually seen the swfstrings
command before.
I've tried it out on some of my pdf2swf swfs and all I get is a load
of ??????? outputted.
I'm guessing this has something to do with a font issue maybe?
Your process is interesting and could work somewhat. However, I am
very keen to highlight the search words.
I've seen this done on some e-mag sites and am pretty certain they are
using a combination of pdf2swf and getTextSnapShot().
I'll keep searching and let you know if I come across anything,
Thanks again, Mark.
------------------------------------------------------------------------
*mark lowe*
senior multimedia developer
*multimedia resource australia*
*t:*
+61 3 9602 4750
*f:*
+61 3 9606 0408
*e:*
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
*w:*
www.mmr.com.au <http://www.mmr.com.au>
level 2, 351 elizabeth st, melbourne vic 3000 [ courier correspondence ]
p.o. box 205, fitzroy vic 3065 [ all other correspondence ]
*From:* Pete Siviter [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, November 13, 2007 7:50 PM
*To:* Mark A. Lowe
*Subject:* Re: [Swftools-common] PDF2SWF and getTextSnapShot()
Hi Mark,
I am probably walking a similar road to you at the moment and,
although I haven't done it yet, my next planned step was to use the
swfstrings program to fill a MySQL database with words tied to the
specific swf files.
I am using a php script to convert my thousands of pdfs to swfs so it
is an easy step to catch the output from swfstrings on the converted
pages and put it in a database.
After this you can query the mysql database to locate swf files with
specific words and therefore know what page to go to.
This works for me because every page is a separate swf file with the
page number in it's name. You could produce a database from a split
pdf file converted using a splitting utility (like gios splitter),
convert those to swf files (via qpdf2swf) and then use swfstrings...
If that works for you...
There's probably a way of doing it directly from the pdf though.
That gets you to a particular page. As far as highlighting the
specific search words on the page? No idea at this stage.
Cheers,
Pete
Mark A. Lowe wrote:
Hey guys,
Just starting to use PDF2SWF for my e-mag system and it's working great.
I'm still learning it and the answer may be obvious, but where would I
find some documentation/examples on how to search the text once I have
loaded my (pdf2swf) .swf file into my Flash application?
Is all the text put in a specified textfield, or is it broken up into
multiple fields?
Any guidance would be greatly appreciated,
Mark.
------------------------------------------------------------------------
*mark lowe*
senior multimedia developer
*multimedia resource australia*
*t:*
+61 3 9602 4750
*f:*
+61 3 9606 0408
*e:*
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
*w:*
www.mmr.com.au <http://www.mmr.com.au>
level 2, 351 elizabeth st, melbourne vic 3000 [ courier correspondence ]
p.o. box 205, fitzroy vic 3065 [ all other correspondence ]
This message has been scanned by MailController
<http://www.mailcontroller.altohiway.com/>.