ICEpdf
  1. ICEpdf
  2. PDF-435

EmptyStackException: org.icepdf.core.util.ContentParser.parseText

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.2
    • Fix Version/s: 4.3.3
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      float f6 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();
                          float f5 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();
                          float f4 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();
                          float f3 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();
                          float f2 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();
                          float f1 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();
      Show
      float f6 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();                     float f5 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();                     float f4 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();                     float f3 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();                     float f2 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();                     float f1 = stack.isEmpty() ? 0 : ((Number) stack.pop()).floatValue();

      Description

      /**
                       * Tranformation matrix
                       * tm = |f1 f2 0|
                       * |f3 f4 0|
                       * |f5 f6 0|
                       */
                      else if (nextToken.equals(PdfOps.Tm_TOKEN)) {
      // collectTokenFrequency(PdfOps.Tm_TOKEN);
                          shift = 0;
                          previousAdvance = 0;
                          advance.setLocation(0, 0);

                          //EmptyStackException if the stack is empty.
                          float f6 = ((Number) stack.pop()).floatValue(); // mab
                          float f5 = ((Number) stack.pop()).floatValue();
                          float f4 = ((Number) stack.pop()).floatValue();
                          float f3 = ((Number) stack.pop()).floatValue();
                          float f2 = ((Number) stack.pop()).floatValue();
                          float f1 = ((Number) stack.pop()).floatValue();
                          AffineTransform af = new AffineTransform(textBlockBase);

        Activity

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Wen Wu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: