# CHAPTER 10. Annotations def annotationsJSON(pdf): """Get the annotations in JSON format."""