how to search text using the Document API

Using Print2Flash Document API
Post Reply
ragkumarsantosh
Posts:1
Joined:Fri Jun 22, 2012 11:55 am
how to search text using the Document API

Post by ragkumarsantosh » Fri Jun 22, 2012 12:11 pm

Hi,

As per the page -- http://print2flash.com/help/DocumentAPIFunctions.php

under Search, there is a function -- "SearchText(text)"
and under text selection there is a function -- "setTextSelectionRange(sel:SelectionRange)"

how do I use the above functions in the Asp.Net sample code provided.

Basically when a file is printed, I would like to read the contents and search for some text and then save that as an swf file or as a text file. Its a little urgent, ur help is greatly appreciated.

Thanks,
Rag

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: how to search text using the Document API

Post by staff » Fri Jun 22, 2012 1:05 pm

The Document API works with documents already converted to Flash. So you have to convert a document to Flash first, then load the document in the browser or another Flash movie, and afterwards access that document API using guidelines set out in this help topic: http://print2flash.com/help/ProgrammaticInterface.php

You cannot do this directly from within the ASP.NET sample from Print2Flash SDK as this sample demonstrates using Print2Flash OLE Automation API and not Document API.

We think the best way is to analyze original document text BEFORE you convert it to Flash using some API for document access. For example, to access Word documents content, you may use Word Automation API.

Post Reply