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

Splitting starts counting for cutting out pages wrongly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.6, 2.0.7
    • 2.0.8, 3.0.0 PDFBox
    • Utilities

    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

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

            Dates

              Created:
              Updated:
              Resolved: