freddi fred created PDFBOX-3969:
-----------------------------------

             Summary: Splitting starts counting for cutting out pages wrongly
                 Key: PDFBOX-3969
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3969
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 2.0.6
            Reporter: freddi fred
         Attachments: 1000pages.pdf

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.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to