Skip navigation
SowbhagyaSanjeev
Currently Being Moderated

How to set line style to be underline for links using PDLinkAnnotSetBorder

Apr 1, 2012 11:28 PM

Hello,

 

I want to set link line style to be underline. am not finding any difference for solid and underline except cosname of S  (BS) is U or S

 

Please anyone tells me how to change the link line style to be underline.

 

Thanks,

 

Sow

 
Replies
  • Currently Being Moderated
    Apr 2, 2012 3:10 AM   in reply to SowbhagyaSanjeev

    S - solid

    D - dashed

    U - underline

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 3, 2012 2:42 AM   in reply to SowbhagyaSanjeev

    Get the CosObj with PDAnnotGetCosObj and change the entry for BS.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 5, 2012 3:45 AM   in reply to SowbhagyaSanjeev

    Did you check the properties of the link in Adobe Acrobat?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 5, 2012 7:11 AM   in reply to SowbhagyaSanjeev

    How did you check the value in your code?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2012 1:54 AM   in reply to SowbhagyaSanjeev

    You may check your files with the Enfocus Browser plugin:

    http://www.enfocus.com/product.php?id=4530

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 10, 2012 5:28 AM   in reply to SowbhagyaSanjeev

    This seems to work,"U" being the dictionary and "S" the entry

     

      CosObj cName = CosNewName (cDoc, 0, ASAtomFromString ("U"));

              CosDictPut(BSDict, ASAtomFromString("S"), cName);

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 11:48 PM   in reply to SowbhagyaSanjeev

    CosObj cosLink = PDAnnotGetCosObj( pdAnnot );

          

    CosObj cosbs = CosDictGet(cosLink, ASAtomFromString("BS"));


    CosObj cosSvalue = CosDictGet(cosbs, ASAtomFromString("S"));

    How did you check the value of cosSvalue?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 2:21 AM   in reply to SowbhagyaSanjeev

    csNamevalue is CString. This shows always S.

    How did you see this? Did you debug the code? Did you compare csNamevalue with "S" ?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 5:15 AM   in reply to SowbhagyaSanjeev

    Using your code I can see the same value as with the Enfocus Browser.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points