[ 
https://issues.apache.org/jira/browse/PDFBOX-2014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988811#comment-13988811
 ] 

Tilman Hausherr commented on PDFBOX-2014:
-----------------------------------------

Do you have a sample PDF that has what you want?

> 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)

Reply via email to