You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "Hesham G." <he...@gmail.com> on 2011/01/18 23:30:55 UTC

Creating a link with no border

Hello ,

I am trying to create a link with no borders. The link appears and works perfect in Adobe reader, but in Mac Preview the link appears with a border around it. Here is my code :
PDAnnotationLink link = new PDAnnotationLink();

PDBorderStyleDictionary border = new PDBorderStyleDictionary();

border.setWidth( 0f );

link.setBorderStyle( border );

Can this be fixed to show no border in Mac's Preview ?


Best regards ,
Hesham 

Re: Creating a link with no border

Posted by "Hesham G." <he...@gmail.com>.
Thanks a lot Adam for the fast response.
I have opened a Jira bug with a sample PDF if anyone wants to follow this :
https://issues.apache.org/jira/browse/PDFBOX-943


Best regards ,
Hesham 

---------------------------------------------
Included message :


> It looks to me like you're doing everything correctly, and Adobe Reader 
> renders it properly, so it sounds like that a bug with Mac Preview.  The 
> only thing you can do is report it to them and hope they fix it.  Setting 
> the border to zero really should work.
> 
> ---- 
> Thanks,
> Adam
> 
> 
> 
> Hello ,
> 
> I am trying to create a link with no borders. The link appears and works 
> perfect in Adobe reader, but in Mac Preview the link appears with a border 
> around it. Here is my code :
> PDAnnotationLink link = new PDAnnotationLink();
> 
> PDBorderStyleDictionary border = new PDBorderStyleDictionary();
> 
> border.setWidth( 0f );
> 
> link.setBorderStyle( border );
> 
> Can this be fixed to show no border in Mac's Preview ?
> 
> 
> Best regards ,
> Hesham 
> 
> 

Re: Creating a link with no border

Posted by Ad...@swmc.com.
It looks to me like you're doing everything correctly, and Adobe Reader 
renders it properly, so it sounds like that a bug with Mac Preview.  The 
only thing you can do is report it to them and hope they fix it.  Setting 
the border to zero really should work.

---- 
Thanks,
Adam



From:
"Hesham G." <he...@gmail.com>
To:
"pdfbox-send-question" <us...@pdfbox.apache.org>
Date:
01/18/2011 14:31
Subject:
Creating a link with no border



Hello ,

I am trying to create a link with no borders. The link appears and works 
perfect in Adobe reader, but in Mac Preview the link appears with a border 
around it. Here is my code :
PDAnnotationLink link = new PDAnnotationLink();

PDBorderStyleDictionary border = new PDBorderStyleDictionary();

border.setWidth( 0f );

link.setBorderStyle( border );

Can this be fixed to show no border in Mac's Preview ?


Best regards ,
Hesham 




- FHA 203b; 203k; HECM; VA; USDA; Conventional 
- Warehouse Lines; FHA-Authorized Originators 
- Lending and Servicing in over 45 States 
www.swmc.com   -  www.simplehecmcalculator.com   
Visit  www.swmc.com/resources   for helpful links on Training, Webinars, Lender Alerts and Submitting Conditions  

This email and any content within or attached hereto from Sun West Mortgage Company, Inc. is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named on this email. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this email information is strictly prohibited, and that the documents should be returned to this office immediately by email. Receipt by anyone other than the intended recipient is not a waiver of any privilege. Please do not include your social security number, account number, or any other personal or financial information in the content of the email. Should you have any questions, please call (800) 453 7884.