コード例 #1
0
 /* Inherit documentation */
 public void processString(
     PageStreamTransform pageStreamTransform,
     PDFOperator operator,
     List operands,
     COSString cosString)
     throws IOException {
   pageStreamTransform.signalChange(); // At least one string processed
   ExtractStringsToOutputStream extractText =
       (ExtractStringsToOutputStream) pageStreamTransform;
   extractText.outputStream.write(cosString.getBytes());
 }
コード例 #2
0
 /* Inherit documentation */
 public void processString(
     PageStreamTransform pageStreamTransform,
     PDFOperator operator,
     List operands,
     COSString cosString)
     throws IOException {
   pageStreamTransform.signalChange(); // At least one string processed
   ExtractStringsToStringBuffer extractStrings =
       (ExtractStringsToStringBuffer) pageStreamTransform;
   extractStrings.buffer.append(PdfUtil.getPdfString(cosString));
 }