Foxit Corporation Forums  

Go Back   Foxit Corporation Forums > Portable Document Format (PDF) Tools > SDK ( DLL or ActiveX)

SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 2nd, 2006, 03:28 PM
bookworm's Avatar
bookworm bookworm is offline
Junior Member
 
Join Date: Jun 2006
Posts: 2
bookworm is an unknown quantity at this point
Question How to get the text of link in pdf file?

To get the Handle of a link, we use functions FPDFLink_GetLinkAtPoint() and FPDFLink_GetDest(). Now, Instead of getting the Handle, I want to get the text of this link. How?
Reply With Quote
  #2  
Old June 5th, 2006, 06:14 AM
Razvan's Avatar
Razvan Razvan is offline
Junior Member
 
Join Date: Jun 2006
Location: coders camp
Posts: 8
Razvan is an unknown quantity at this point
Default

i don't know how to get the actual text, but you can FPDFAction_GetURIPath for the uri path if you want to handle an url click:

Something like this:
PHP Code:
FPDF_LINK Link=FPDFLink_GetLinkAtPoint(Page,PageX,PageY);
    if (
Link>0)  
        {
            
FPDF_ACTION action;
                
char uri[255];                                  
                        
action=FPDFLink_GetAction(Link);                                       
                        
FPDFAction_GetURIPath(Doc,action,uri,255);
                        
MessageBox(0,uri,"the link text",MB_OK);
                 } 

Last edited by Razvan; June 5th, 2006 at 06:21 AM.
Reply With Quote
  #3  
Old June 5th, 2006, 06:17 AM
bookworm's Avatar
bookworm bookworm is offline
Junior Member
 
Join Date: Jun 2006
Posts: 2
bookworm is an unknown quantity at this point
Default

Thanks. I will try
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2005-2008 Foxit Corporation. All rights reserved.