Skip navigation
Amith Sai ChelseaFC
Currently Being Moderated

Change the fore Color of the link annotation..

Sep 7, 2010 10:22 PM

Dear All,

 

Can anyone let know how to change a forecolor of the particular link annotation through SDK.

 

normally the links in a pdf document are represented in blue with an underline...now i need to change the style of all the links in the PDF

 

Am using PDAnnot to fetch the link annotation after fetching am trying to use the function PDAnnotationSetColor but am not able to see the color change reflecting in the document.

 

Please help

 

Regard's

 

Amith Sai

 
Replies
  • Currently Being Moderated
    Sep 8, 2010 3:53 AM   in reply to Amith Sai ChelseaFC

    Links don't have any actual appearance - it's the page content underneath the link that does.

     

    So you need to use the PDEdit APIs (available to plugins) to iterate the page content, find the content that sits underneath the Link annotation(s) and change their attributes.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 8, 2010 4:23 AM   in reply to Amith Sai ChelseaFC

    There no such thing as "link color" - it's just the fill color for the objects in question.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 8, 2010 4:48 AM   in reply to Amith Sai ChelseaFC

    You will need to find any/all objects whose bounding box (BBox) is underneath the Link annotations Rect.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 8, 2010 5:10 AM   in reply to Amith Sai ChelseaFC

    fillColor

     
    |
    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