@classmethod
def get(class_, options):
    """Get and convert PDF options to a dict"""
    if not options:
        return
    r = {}
    for option in options.split(','):
        if not option:
            continue
        elems = option.split('=')
        if len(elems) != 2:
            continue
        key, value = elems
        if not key or not value:
            continue
        if value in class_.values:
            value = class_.values[value]
        elif value.isdigit():
            value = int(value)
        r[key] = value
    return r
