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

Splitting starts counting for cutting out pages wrongly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.6, 2.0.7
    • Fix Version/s: 2.0.8, 3.0.0 PDFBox
    • Component/s: Utilities
    • Labels:

      Description

      Right now the usage of 'splitAtPage' is wrong. Let's assume there is a document with 1000pages,
      startPage=238, endPage=977, splitAtPage=17 then pdfbox starts splitAtPage at page #0! This leads to the following
      groups: 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 8

      I would have expected: 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
      17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 9

      This does not allow for example cutting out some parts of a document.

        Attachments

        1. 1000pages.pdf
          9.67 MB
          freddi fred

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              freddi freddi fred
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: