Announcement

Collapse
No announcement yet.

[Embedded PDF SDK Android] Changing URL Handling

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

  • huy_tran
    replied
    Dear Pat,

    OnClick will provide you a x and y coordinate for you to translate to PDF page points using FPDF_Page_DeviceToPagePointF. You would then check if the points exist in the link location by calling FPDF_Annot_GetLinkArea to get the link's area and see if the points fall in that area. Once you confirm that it is in the links area you can call FPDF_Annot_GetLink to get the link. The link will be whatever you put in it and yes, it is up to the browser to handle the added http://

    Sincerely,
    Huy

    Leave a comment:


  • pat
    started a topic [Embedded PDF SDK Android] Changing URL Handling

    [Embedded PDF SDK Android] Changing URL Handling

    Hi,
    is it possible to change the onlick event of a url? I would like to start a new Activity by clicking on a url, f.e. "com.package.myapp://test". Would that be possible or would it open the url via browser and prepend "http://"?
Working...
X