VeryPDF
============================================
Thanks for your reply.
The selection text is not possible from PDF file. Because our opinion is, when we call the pdf file from our server, the file is open in our control. in that time, we are control disable print, save, download, copy, paste and edit option. As same like that, when we select the speech button, automatically the pdf file text going to speech. We didn’t select the text. What are the text in PDF file, automatically voice is need. If any image in pdf file we don’t need any voice for that. Just jump to next text. When the text related voice coming from our control, need to highlight the reading text (assign some color).We need add third party voice for from my side. If any voice problem ,we are modified best voice. Please provide the option.
==============================
Thanks for your message, we can provide following functions and data structure to you,
struct Textinfo{
int nPage; //Page index in PDF file
int nWordID; //ID of each word in this page
string strText; //Text contents
};
//You can use ConvertPDFToText() function to get all text words on one PDF page or all PDF pages, //if page is equal to -1, ConvertPDFToText() function will return text words for all PDF pages, otherwise, it will return one special page only Textinfo[] = ConvertPDFToText(char *lpszInPDF, int page);
HighlightWordTextOnPDFPage(Textinfo[0]);
HighlightWordTextOnPDFPage(Textinfo[1]);
HighlightWordTextOnPDFPage(Textinfo[2]);
You can use ConvertPDFToText() function to get all text information from a PDF page, you will get a data structure for each word on this PDF page. After that, you can use yourself's voice engine to convert this word to voice and play it, of course, you can combine several words into a sentence and read this sentence at one time. You can then call HighlightWordTextOnPDFPage() function to high each word on PDF page during reading. If you have already combined the words into a sentence, you need control the speed of calling to HighlightWordTextOnPDFPage() function by yourself.
Also, if current reading words are go beyond the screen, PDF Viewer Control will scroll the PDF page automatically.
Is this solution okay to you?
VeryPDF