@Override
    public void visitFromString(COSString obj) throws IOException {
        if (willEncrypt) {
            pdDocument.getEncryption().getSecurityHandler()
                    .encryptString(obj, currentObjectKey.getNumber(),
                            currentObjectKey.getGeneration());
        }
        COSWriter.writeString(obj, getStandardOutput());
    }
visitFromObjRef method comment.

@param obj The object that is being visited.
@throws IOException If there is an exception while visiting this object.
tika-fuzzing/src/main/java/org/apache/tika/fuzzing/pdf/EvilCOSWriter.java