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

PDPageLabels.getLabelsByPageIndices() returns Uppercase letters for style a

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.8.12, 1.8.13, 2.0.1, 2.0.2, 3.0.0 PDFBox
    • Fix Version/s: 1.8.13, 2.0.2, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
    • Environment:
      Windows Computer

      Description

      For the style 'a' the Method getLabelsByPageIndices returns uppercase due to the method LabelGenerator.makeLetterLabel always returns uppercase. Then the method LabelGenerator.getNumber shoule be changed from:

      } else if (PDPageLabelRange.STYLE_LETTERS_LOWER.equals(style)) {
          return makeLetterLabel(pageIndex);
      } else if (PDPageLabelRange.STYLE_LETTERS_UPPER.equals(style)) {
          return makeLetterLabel(pageIndex).toUpperCase();
      }
      

      to:

      } else if (PDPageLabelRange.STYLE_LETTERS_LOWER.equals(style)) {
          return makeLetterLabel(pageIndex).toLowerCase();
      } else if (PDPageLabelRange.STYLE_LETTERS_UPPER.equals(style)) {
          return makeLetterLabel(pageIndex);
      }
      

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              carlos_forever@msn.com Carlos Cabral
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified