- Posts: 40
- Thank you received: 1
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Hyperlink
- abhishekjaju
- Topic Author
- Offline
- Senior Member
-
Less
More
IP: 192.168.0.71
11 years 4 months ago #7494
by abhishekjaju
Hyperlink was created by abhishekjaju
I want to hyperlink text in pdf which is not already hyperlinked (At time of creation of pdf ). I want to add hyperlink to text like "Obstacle" is present in pdf. Then how can i hyperlink that text.
After that I want to get the on click listener of that hyperlinked text.
So please help me we are in final satage of delivering product, so please help us.
After that I want to get the on click listener of that hyperlinked text.
So please help me we are in final satage of delivering product, so please help us.
IP: 192.168.0.158
11 years 4 months ago #7497
by nermeen
You can start by searching this word in the page, to get it's cooredinates ... then call AddAnnotURI passing the found word rect.
To handle the click listener, you need to implement PDFReaderListener.OnOpenURI, make sure that m_reader.PDFPerformAnnot is called in PDFReaderListener.OnAnnotClicked.
to search for the word, you can check
www.androidpdf.mobi/forum/Android-develo...in-a-pdf-search#2640
to add annotation:
www.androidpdf.mobi/forum/Android-develo...ith-addannoturi#5349
To handle the click listener, you need to implement PDFReaderListener.OnOpenURI, make sure that m_reader.PDFPerformAnnot is called in PDFReaderListener.OnAnnotClicked.
to search for the word, you can check
www.androidpdf.mobi/forum/Android-develo...in-a-pdf-search#2640
to add annotation:
www.androidpdf.mobi/forum/Android-develo...ith-addannoturi#5349
- abhishekjaju
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 1
IP: 192.168.0.71
11 years 4 months ago #7499
by abhishekjaju
Replied by abhishekjaju on topic Hyperlink
I want to know how can I get the co-ordinates of the search result text
- abhishekjaju
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 1
IP: 192.168.0.72
11 years 4 months ago #7505
by abhishekjaju
Replied by abhishekjaju on topic Hyperlink
Hey,
Genetal man can you reply for this question.
How can I get the co-ORDINATES of the searched text result
Genetal man can you reply for this question.
How can I get the co-ORDINATES of the searched text result
IP: 192.168.0.158
11 years 4 months ago #7508
by nermeen
You can implement it yourself using:
www.androidpdf.mobi/documentation/javado...ml#GetFirstChar(int)
www.androidpdf.mobi/documentation/javado...html#ObjsGetCharRect (int, float[])
www.androidpdf.mobi/documentation/javado...ml#GetFirstChar(int)
www.androidpdf.mobi/documentation/javado...html#ObjsGetCharRect (int, float[])
- abhishekjaju
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 1
IP: 192.168.0.71
11 years 4 months ago #7514
by abhishekjaju
Replied by abhishekjaju on topic Hyperlink
After I search the word, I am able to find the co-ordinates of the searched word.
We are planning to create a Glossary/Dictionary.
We need to bind Dictionary with this PDF, need to show meaning of words on the PDF.
For the same we are not able to find co-ordinates.
But I am not able to find the co-ordinates of this word to show the meaning of the word.
We need your guided help.
Please guide us in finding a proper solution.
We are planning to create a Glossary/Dictionary.
We need to bind Dictionary with this PDF, need to show meaning of words on the PDF.
For the same we are not able to find co-ordinates.
But I am not able to find the co-ordinates of this word to show the meaning of the word.
We need your guided help.
Please guide us in finding a proper solution.
Time to create page: 0.428 seconds