You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Mehdi Houshmand (JIRA)" <ji...@apache.org> on 2011/06/21 11:50:47 UTC

[jira] [Created] (PDFBOX-1043) PDF Version not read in the document catalog

PDF Version not read in the document catalog
--------------------------------------------

                 Key: PDFBOX-1043
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1043
             Project: PDFBox
          Issue Type: New Feature
          Components: Parsing, PDModel
    Affects Versions: 1.5.0
         Environment: Ubuntu 11.04
            Reporter: Mehdi Houshmand
            Priority: Minor


The version of the PDF document is read ONLY in the header. PDF 1.4 allows the version to also be specified in the document catalog (see section 3.6.1 PDF 1.5 reference).

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

        

[jira] [Commented] (PDFBOX-1043) PDF Version not read in the document catalog

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

Mehdi Houshmand commented on PDFBOX-1043:
-----------------------------------------

I've attached a patch to fix this issue. 

However, the spec is somewhat ambiguous about the use case. The intention for this feature is for "Incremental Updates", such that trailers can be appended to the end of the document, and should one of their /Version parameter be greater than that of the header, the version in the header is overridden. Our use case is that we don't know until half-way through writing the PDF document what version to specify. In this scenario, there is only a single trailer and the /Version parameter will override the header.

> PDF Version not read in the document catalog
> --------------------------------------------
>
>                 Key: PDFBOX-1043
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1043
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Parsing, PDModel
>    Affects Versions: 1.5.0
>         Environment: Ubuntu 11.04
>            Reporter: Mehdi Houshmand
>            Priority: Minor
>         Attachments: documentcatalog.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The version of the PDF document is read ONLY in the header. PDF 1.4 allows the version to also be specified in the document catalog (see section 3.6.1 PDF 1.5 reference).

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

        

[jira] [Resolved] (PDFBOX-1043) PDF Version not read in the document catalog

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

Andreas Lehmkühler resolved PDFBOX-1043.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.0
         Assignee: Andreas Lehmkühler

I applied the patch in revision 1139575 as proposed with some reformating.

Thanks for the contribution

> PDF Version not read in the document catalog
> --------------------------------------------
>
>                 Key: PDFBOX-1043
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1043
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Parsing, PDModel
>    Affects Versions: 1.5.0
>         Environment: Ubuntu 11.04
>            Reporter: Mehdi Houshmand
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 1.6.0
>
>         Attachments: documentcatalog.patch, version.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The version of the PDF document is read ONLY in the header. PDF 1.4 allows the version to also be specified in the document catalog (see section 3.6.1 PDF 1.5 reference).

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

       

[jira] [Updated] (PDFBOX-1043) PDF Version not read in the document catalog

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

Mehdi Houshmand updated PDFBOX-1043:
------------------------------------

    Attachment: documentcatalog.patch

PATCH

> PDF Version not read in the document catalog
> --------------------------------------------
>
>                 Key: PDFBOX-1043
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1043
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Parsing, PDModel
>    Affects Versions: 1.5.0
>         Environment: Ubuntu 11.04
>            Reporter: Mehdi Houshmand
>            Priority: Minor
>         Attachments: documentcatalog.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The version of the PDF document is read ONLY in the header. PDF 1.4 allows the version to also be specified in the document catalog (see section 3.6.1 PDF 1.5 reference).

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

        

[jira] [Commented] (PDFBOX-1043) PDF Version not read in the document catalog

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

Mehdi Houshmand commented on PDFBOX-1043:
-----------------------------------------

revised patch. I failed to run the unit tests on the original, the new patch fixes the exceptions thrown by the first patch

> PDF Version not read in the document catalog
> --------------------------------------------
>
>                 Key: PDFBOX-1043
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1043
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Parsing, PDModel
>    Affects Versions: 1.5.0
>         Environment: Ubuntu 11.04
>            Reporter: Mehdi Houshmand
>            Priority: Minor
>         Attachments: documentcatalog.patch, version.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The version of the PDF document is read ONLY in the header. PDF 1.4 allows the version to also be specified in the document catalog (see section 3.6.1 PDF 1.5 reference).

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

        

[jira] [Updated] (PDFBOX-1043) PDF Version not read in the document catalog

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

Mehdi Houshmand updated PDFBOX-1043:
------------------------------------

    Comment: was deleted

(was: PATCH)

> PDF Version not read in the document catalog
> --------------------------------------------
>
>                 Key: PDFBOX-1043
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1043
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Parsing, PDModel
>    Affects Versions: 1.5.0
>         Environment: Ubuntu 11.04
>            Reporter: Mehdi Houshmand
>            Priority: Minor
>         Attachments: documentcatalog.patch, version.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The version of the PDF document is read ONLY in the header. PDF 1.4 allows the version to also be specified in the document catalog (see section 3.6.1 PDF 1.5 reference).

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

        

[jira] [Updated] (PDFBOX-1043) PDF Version not read in the document catalog

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

Mehdi Houshmand updated PDFBOX-1043:
------------------------------------

    Attachment: version.patch

revised patch

> PDF Version not read in the document catalog
> --------------------------------------------
>
>                 Key: PDFBOX-1043
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1043
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Parsing, PDModel
>    Affects Versions: 1.5.0
>         Environment: Ubuntu 11.04
>            Reporter: Mehdi Houshmand
>            Priority: Minor
>         Attachments: documentcatalog.patch, version.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The version of the PDF document is read ONLY in the header. PDF 1.4 allows the version to also be specified in the document catalog (see section 3.6.1 PDF 1.5 reference).

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