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

PDPageLabels.getLabelsByPageIndices() returns Uppercase letters for style a

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.8.12, 1.8.13, 2.0.1, 2.0.2, 3.0.0 PDFBox
    • 1.8.13, 2.0.2, 3.0.0 PDFBox
    • PDModel
    • 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

            tilman Tilman Hausherr
            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