i need to extract the text of a specific page from a XPS document. The extracted text should be written in a string. I need this to read out the extracted text using Microsofts SpeechLib. Please examples only in C#.
Thanks
i need to extract the text of a specific page from a XPS document. The extracted text should be written in a string. I need this to read out the extracted text using Microsofts SpeechLib. Please examples only in C#.
Thanks
Method that returns text from all pages (modified Amir:s code, hope that's ok):
Usage:
Full Code of Class:
that return a list of string data from custom page of custom file.
Add References to
ReachFramework
andWindowsBase
and the followingusing
statement:Then use this code:
Text exists in
Glyphs
->UnicodeString
string attribute. You have to useXMLReader
for fixed page.