Use tabs instead of spaces
This commit is contained in:
parent
da7f0561cb
commit
d039c8e62e
1 changed files with 12 additions and 12 deletions
|
@ -114,16 +114,16 @@ public class RearrangePagesPDFController {
|
||||||
return newPageOrder;
|
return newPageOrder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Integer> sideStitchBooklet(int totalPages) {
|
private List<Integer> sideStitchBooklet(int totalPages) {
|
||||||
List<Integer> newPageOrder = new ArrayList<>();
|
List<Integer> newPageOrder = new ArrayList<>();
|
||||||
for (int i = 0; i < (totalPages + 3) / 4; i++) {
|
for (int i = 0; i < (totalPages + 3) / 4; i++) {
|
||||||
int begin = i * 4;
|
int begin = i * 4;
|
||||||
newPageOrder.add(Math.min(begin + 3, totalPages - 1));
|
newPageOrder.add(Math.min(begin + 3, totalPages - 1));
|
||||||
newPageOrder.add(Math.min(begin, totalPages - 1));
|
newPageOrder.add(Math.min(begin, totalPages - 1));
|
||||||
newPageOrder.add(Math.min(begin + 1, totalPages - 1));
|
newPageOrder.add(Math.min(begin + 1, totalPages - 1));
|
||||||
newPageOrder.add(Math.min(begin + 2, totalPages - 1));
|
newPageOrder.add(Math.min(begin + 2, totalPages - 1));
|
||||||
}
|
}
|
||||||
return newPageOrder;
|
return newPageOrder;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Integer> oddEvenSplit(int totalPages) {
|
private List<Integer> oddEvenSplit(int totalPages) {
|
||||||
|
@ -147,8 +147,8 @@ public class RearrangePagesPDFController {
|
||||||
return duplexSort(totalPages);
|
return duplexSort(totalPages);
|
||||||
case BOOKLET_SORT:
|
case BOOKLET_SORT:
|
||||||
return bookletSort(totalPages);
|
return bookletSort(totalPages);
|
||||||
case SIDE_STITCH_BOOKLET_SORT:
|
case SIDE_STITCH_BOOKLET_SORT:
|
||||||
return sideStitchBooklet(totalPages);
|
return sideStitchBooklet(totalPages);
|
||||||
case ODD_EVEN_SPLIT:
|
case ODD_EVEN_SPLIT:
|
||||||
return oddEvenSplit(totalPages);
|
return oddEvenSplit(totalPages);
|
||||||
case REMOVE_FIRST:
|
case REMOVE_FIRST:
|
||||||
|
|
Loading…
Reference in a new issue