Get CGRect position of Selected text on PDF - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Get CGRect position of Selected text on PDF

Get CGRect position of Selected text on PDF 11 months 1 week ago #13291

  • josgou
  • josgou's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 8
  • Thank you received: 0
hi,

how can we get CGRect of the selected text from pdf..

Please Log in or Create an account to join the conversation.

Get CGRect position of Selected text on PDF 11 months 1 week ago #13293

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 59
  • Thank you received: 4
Hi,
You could take a look in vSelGetText method in PDFView class, here is the code that you are looking for:
struct PDFV_POS pos;
[m_view vGetPos:&pos : m_tx: m_ty]; //get CGRect of selected text

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum