Announcement

Collapse
No announcement yet.

How to make hyperlink works in the "Foxit Embedded PDF SDK"?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Feature How to make hyperlink works in the "Foxit Embedded PDF SDK"?

    I opened the PDF file which contains hyperlinks to the inside pages of the document with the "Foxit Embedded PDF SDK".
    But hyperlinks are not works. Although in the "Foxit Reader" hyperlinks are works properly.

    What function makes hyperlinks to work properly?

  • #2
    Dear dzx912,

    You must implement the link features on that can be found at http://www.foxitsoftware.com/support...f_t_e_x_t.html.
    For example, this is how to get the destination.
    FPDF_Text_LoadPage (page, &textPage);//load textpage
    FPDF_Link_LoadWebLinks ( textPage, &linkPage);//load linkpage
    FPDF_Link_CountWebLinks (linkPage,linkCount);//get number of page
    FPDF_Link_GetDest (linkPage, 2, null, buflen);//getting buflen. Note: choose to get the second link on the page, assuming the count of web links were greater then 2
    FPDF_Link_GetDest (linkPage, 2, buffer, buflen);//get buffer. Note: the first call was to get the size, the second call was to get the actual data.

    Huy
    FoxitSE

    Comment


    • #3
      Thanks a lot!! But...
      Oops. I forgot to tell that I'm working on WinRT platform (Windows 8 Metro Style). So that's means that I using the Foxit Embedded SDK for WinRT Component, and I didn't found those functions in this component. I see that those functions are from another component. Is it possible to make hyperlinks to work in the Foxit Embedded SDK for WinRT Component?

      Comment


      • #4
        Dear dzx912,

        The same function are in WinRT component.

        Foxit::General::PDF::Text::LoadPage
        Foxit::General::PDF::Text::LoadWebLinks
        Foxit::General::PDF::Text::CountWebLinks
        Foxit::General::PDF::Text::GetWebLinkDest

        Detail information can be found in WinRT_Manual.chm/WinRT_Manual.html.

        Thanks,
        Huy
        Foxit Support Engineer
        huy_tran@foxitsoftware.com

        Comment

        Working...
        X