We want to be able to automatically redact sections of hundreds of documents by specifying a start and end point for the redaction. For example, redact everything from "Appendix A" to "Appendix B". Is there a way to do that?
Yes. You can add redaction annotations using the doc.addAnnot method and apply the redactions using the doc.applyRedactions.
Also, if you just want to delete entire pages, you can use the doc.deletePages method.