You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Gilad Denneboom (JIRA)" <ji...@apache.org> on 2011/05/31 16:00:47 UTC

[jira] [Created] (PDFBOX-1024) Some PDBorderStyleDictionary options not honored

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


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

[jira] [Commented] (PDFBOX-1024) Some PDBorderStyleDictionary options not honored

Posted by "Gilad Denneboom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045861#comment-13045861 ] 

Gilad Denneboom commented on PDFBOX-1024:
-----------------------------------------

I used Acrobat 9.4.4 Pro and Reader X 10.0.1, with the same results in both.

So do you think this is a bug in Adobe's implementation of the dictionaries?

> 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

[jira] [Closed] (PDFBOX-1024) Some PDBorderStyleDictionary options not honored

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler closed PDFBOX-1024.
--------------------------------------

    Resolution: Not A Problem
      Assignee: Andreas Lehmkühler

> 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
>            Assignee: Andreas Lehmkühler
>            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

       

[jira] [Updated] (PDFBOX-1024) Some PDBorderStyleDictionary options not honored

Posted by "Gilad Denneboom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilad Denneboom updated PDFBOX-1024:
------------------------------------

    Attachment: AddLinks.java
                result.pdf
                batch_sequences.pdf

Here's the class and the input and output files.

> 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

[jira] [Commented] (PDFBOX-1024) Some PDBorderStyleDictionary options not honored

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045420#comment-13045420 ] 

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

Can you provide us with the relevant code snippet and the resulting pdf?

According to the specs (version 1.7) the given 5 values are still valid border styles. It seems that acrobat doesn't support them all.

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

[jira] [Commented] (PDFBOX-1024) Some PDBorderStyleDictionary options not honored

Posted by "Gilad Denneboom (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045822#comment-13045822 ] 

Gilad Denneboom commented on PDFBOX-1024:
-----------------------------------------

PS - any reason why the result file is 3 times bigger compared to the source?

> 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

[jira] [Commented] (PDFBOX-1024) Some PDBorderStyleDictionary options not honored

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045851#comment-13045851 ] 

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

Everything looks good to me, your code as well as the result. All added border style dictionaries were created with the correct border style. I used PDFDebugger to check those values. Did you use a pdf reader to prove your results? The acrobat reader and the preview on my mac don't support all border styles and I assume it's the same with other platform/reader combinations. So maybe that's the problem here.

> 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

[jira] [Commented] (PDFBOX-1024) Some PDBorderStyleDictionary options not honored

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
    [ 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