code: public int getLastStrokeChunk() {
          int lastIdx = line.size() - 1;
          for (; lastIdx >= 0; --lastIdx) {
              PdfChunk chunk = (PdfChunk)line.get(lastIdx);
              if (chunk.isStroked())
                  break;
          }
          return lastIdx;
      }
docs: Gets the index of the last <CODE>PdfChunk</CODE> with metric attributes
  @return the last <CODE>PdfChunk</CODE> with metric attributes