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

Andreas Lehmkühler commented on PDFBOX-1024:
--------------------------------------------

IMO it's not a bug, it's a missing feature. A reader doesn't have to implement 
every kind of border style. At least it should use the default style instead of 
some style which is unknown to the reader.

See the definition from the pdf specs:

"(Optional) The border style:
- S(Solid) A solid rectangle surrounding the annotation.
- D(Dashed) A dashed rectangle surrounding the annotation. The dash pattern may 
be specified by the D entry.
- B(Beveled) A simulated embossed rectangle that appears to be raised above the 
surface of the page.
- I(Inset) A simulated engraved rectangle that appears to be recessed below the 
surface of the page.
- U(Underline) A single line along the bottom of the annotation rectangle.

A conforming reader shall tolerate other border styles that it does not 
recognize and shall use the default value."

> Some PDBorderStyleDictionary options not honored
> ------------------------------------------------
>
>                 Key: PDFBOX-1024
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1024
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.5.0
>         Environment: Windows 7, Acrobat 9 Pro, Reader X
>            Reporter: Gilad Denneboom
>            Priority: Minor
>              Labels: border, links
>         Attachments: AddLinks.java, batch_sequences.pdf, result.pdf
>
>
> I'm creating links and using PDBorderStyleDictionary to set the border style, 
> but have noticed that some options are not honored when opening the files. 
> Here are my findings:
> PDBorderStyleDictionary.STYLE_UNDERLINE = works correctly.
> PDBorderStyleDictionary.STYLE_SOLID = works correctly.
> PDBorderStyleDictionary.STYLE_BEVELED = identical to using SOLID.
> PDBorderStyleDictionary.STYLE_INSET = identical to using SOLID.
> PDBorderStyleDictionary.STYLE_DASHED = identical to using SOLID in 
> appearance, link type under Properties in Acrobat is "Custom".
> I've noticed that when I manually create a link in Acrobat the only options 
> are Solid, Dashed and Underline, so maybe the PDF specs have changed and need 
> to be updated in PDFBox as well.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to