String decode(String value) {
        try {
            byte[] bytes = new String("(" + value + ")").getBytes(ISO_8859_1);
            InputStream is = UnsynchronizedByteArrayInputStream.builder().setByteArray(bytes).get();
            try (RandomAccessRead rar = new RandomAccessReadBuffer(is)) {
                COSStringParser p = new COSStringParser(rar);
                String parsed = p.myParseCOSString();
                if (parsed != null) {
                    return parsed;
                }
            }
        } catch (IOException e) {
            //oh well, we tried.
        }
        //just return value if something went wrong
        return value;
    }
This assumes that {@link #shouldDecode(String)} has been called
and has returned true.  If you run this on a non-octal encoded string,
disaster will happen!

@param value
@return
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/PDFEncodedStringDecoder.java