Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-911

Method PDDocument.getNumberOfPages() returns wrong number of pages

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.8.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP, Eclipse 3.5.2 Galileo

      Description

      Hello,

      I use PDFbox and are very pleased.
      For one PDF file however getNumberOfPages() returns the wrong number of pages (1 instead of 2 pages).

      Test code:
      File xx = new File("c:\\temp
      test.pdf");
      PDDocument pdoc = PDDocument.load(xx);
      int x = pdoc.getNumberOfPages();

      The PDF file could be provided.

      Thanks in advance.

      Regards

        Attachments

        1. test.unc.pdf
          202 kB
          Adam Nichols
        2. ASF.LICENSE.NOT.GRANTED--Martijn Brinkers.jpg
          205 kB
          nielsen
        3. ASF.LICENSE.NOT.GRANTED--atest.pdf
          151 kB
          nielsen
        4. ASF.LICENSE.NOT.GRANTED--test.pdf
          151 kB
          nielsen

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                nielsen nielsen
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: