You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2010/04/28 19:49:51 UTC

[jira] Created: (PDFBOX-707) Add the current page and the number of pages to the title

Add the current page and the number of pages to the title
---------------------------------------------------------

                 Key: PDFBOX-707
                 URL: https://issues.apache.org/jira/browse/PDFBOX-707
             Project: PDFBox
          Issue Type: Improvement
          Components: PDFReader
    Affects Versions: 1.1.0
            Reporter: Andreas Lehmkühler
            Assignee: Andreas Lehmkühler
            Priority: Minor
             Fix For: 1.2.0


You can flip through the pages of a pdf document using the PDFReader, but you can't see the current page and the total number of pages of the pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-707) Add the current page and the number of pages to the title

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

Adam Nichols updated PDFBOX-707:
--------------------------------

    Attachment: SWMC_WarehouseAgreement-V1.pdf

Using revision 939034: getNumberOfPages() doesn't always work.  This document demonstrates the issue.  Code:
doc = PDDocument.load(inputFile);
System.out.println("Number of pages = " + doc.getNumberOfPages());

Result:
java.lang.NullPointerException
        at org.apache.pdfbox.pdmodel.PDPageNode.getCount(PDPageNode.java:102)
        at org.apache.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:931)
        at com.xldynamics.common.PdfBoxTest.main(PdfBoxTest.java:33)

> Add the current page and the number of pages to the title
> ---------------------------------------------------------
>
>                 Key: PDFBOX-707
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-707
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDFReader
>    Affects Versions: 1.1.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 1.2.0
>
>         Attachments: SWMC_WarehouseAgreement-V1.pdf
>
>
> You can flip through the pages of a pdf document using the PDFReader, but you can't see the current page and the total number of pages of the pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PDFBOX-707) Add the current page and the number of pages to the title

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

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

    Resolution: Fixed

With version 939027 I've applied a patch which adds the current page number and the number of pages to the titleof the PDFReader.

> Add the current page and the number of pages to the title
> ---------------------------------------------------------
>
>                 Key: PDFBOX-707
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-707
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDFReader
>    Affects Versions: 1.1.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> You can flip through the pages of a pdf document using the PDFReader, but you can't see the current page and the total number of pages of the pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (PDFBOX-707) Add the current page and the number of pages to the title

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

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

The described issue is the same than described in PDFBOX-578. I've moved your attachmemt to that issue. It doesn't have anything to do with this improvement, it would even crash without it because the number of pages is needed for the page flipping.

Please do not post to already closed issues!

> Add the current page and the number of pages to the title
> ---------------------------------------------------------
>
>                 Key: PDFBOX-707
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-707
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDFReader
>    Affects Versions: 1.1.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> You can flip through the pages of a pdf document using the PDFReader, but you can't see the current page and the total number of pages of the pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PDFBOX-707) Add the current page and the number of pages to the title

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

Andreas Lehmkühler updated PDFBOX-707:
--------------------------------------

    Attachment:     (was: SWMC_WarehouseAgreement-V1.pdf)

> Add the current page and the number of pages to the title
> ---------------------------------------------------------
>
>                 Key: PDFBOX-707
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-707
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDFReader
>    Affects Versions: 1.1.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> You can flip through the pages of a pdf document using the PDFReader, but you can't see the current page and the total number of pages of the pdf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.