"Incorrect value type for this key" and "general file format error"
"The required key /TransformMethod is missing" and "An unexpected value is associated with the key."
More details see the attached screenshot. I executed the "CreateVisibleSignature.java" code. And if the lines are commented the error is gone.