Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Text Hyperlink 9 years 6 months ago #7476

  • abhishekjaju
  • abhishekjaju's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 40
  • Thank you received: 1
I want to add hyperlink to particular text within the pfd.
I used method addanotateURI method but it is not working. I have purchase premium Licens
The topic has been locked.

Text Hyperlink 9 years 6 months ago #7477

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Can you explain in details the problem you have?
The topic has been locked.

Text Hyperlink 9 years 6 months ago #7480

  • abhishekjaju
  • abhishekjaju's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 40
  • Thank you received: 1
When I Use AddanotaeURI Method for Hyperliking text there is one blue color rectangle added over there and nothing happen over there.

My main concern is , if in my pdf there is www.yahoo.com text avail then I want to add the hyperlink like HTML to that particular text.
How can I achieve.

Below is the code I have used for it
public void anot() {
int pageno = 2;
Page pg = m_doc.GetPage(pageno);
float rect[] = new float[4];
rect[0] = 100;// 100 to left
rect[1] = m_doc.GetPageHeight(pageno) - 20;
rect[2] = rect[0] + 80;// 80 width for link
rect[3] = rect[1] + 20;// 20 height for link.
pg.ObjsStart();

Boolean success = pg.AddAnnotURI(rect, "www.yahoo.com");
pg.Close();
}
The topic has been locked.

Text Hyperlink 9 years 6 months ago #7481

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
do you means you want a hyperlink display texts and can be clickable?
you shall add text contents on page, and then add annotation on that area.
see Page.AddContent and Page.AddAnnotURI
The topic has been locked.

Text Hyperlink 9 years 6 months ago #7491

  • abhishekjaju
  • abhishekjaju's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 40
  • Thank you received: 1
Please reply some details so it will better understanding to us . For making hyperlinked text.

Please give suggestion for the hyperlink also ,

We are taking foollowup from last 15 days but we are not getting any satisfactory answer from your end.
So please suggest us some ideal examples for the hyperlink to particular text in PDF.
Last edit: by Nygashi.
The topic has been locked.
  • Page:
  • 1
Powered by Kunena Forum