You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "WALID CHARFI (JIRA)" <ji...@apache.org> on 2014/04/04 15:05:14 UTC

[jira] [Created] (PDFBOX-2014) PDAnnotationLink

WALID CHARFI created PDFBOX-2014:
------------------------------------

             Summary: PDAnnotationLink 
                 Key: PDFBOX-2014
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2014
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 1.6.0
            Reporter: WALID CHARFI


Hi,

I want to draw a text link without any hover effect, neither solid border.
I tried this code but it does not work.
Could you provide me with a solution please? thank you very much.

PDBorderStyleDictionary borderULine = new PDBorderStyleDictionary();
borderULine.setStyle(PDBorderStyleDictionary.STYLE_INSET); 
PDAnnotationLink txtLink = new PDAnnotationLink();
txtLink.setRectangle(position);
PDActionURI action = new PDActionURI();
action.setURI(pdfPara.getUri());
txtLink.setAction(action);
txtLink.setBorderStyle(borderULine);
txtLink.setHighlightMode(PDAnnotationLink.HIGHLIGHT_MODE_NONE);



--
This message was sent by Atlassian JIRA
(v6.2#6252)