code: public float getWidthCorrected(float charSpacing, float wordSpacing) {
          float total = 0;
          for (int k = 0; k < line.size(); ++k) {
              PdfChunk ck = (PdfChunk)line.get(k);
              total += ck.getWidthCorrected(charSpacing, wordSpacing);
          }
          return total;
      }
docs: Gets a width corrected with a charSpacing and wordSpacing.
  @param charSpacing
  @param wordSpacing
  @return a corrected width