RESTful JSON web service for PDF redaction and HTML/Javascript UI using the service