def annotationsJSON(pdf):
    """Gets the annotations in JSON format."""

def removeAnnotations(pdf, r):
    """Removes all annotations from pages in the given range."""

def setAnnotationsJSON(pdf, data):
    """Adds the annotations given in JSON format to the PDF, on top of any
    existing annotations."""
