While the most common export from the Affinda platform is structured data to be ingested into a downstream system, Affinda also offers document redaction capabilities on any document type. With these redaction capabilities, we edit the PDF so that the original text is completely removed and not just masked by an overlay.

Resume Redaction

Click here for information about our pre-configured Resume Redactor.

Configuring a Document Type for redaction

The steps to create a new Document Type that is suitable for redaction are very similar to those required for the typical extraction of structure data.
  1. Follow this tutorial to create your new Document Type
  2. Edit every field to ensure ‘Allow Multiple Values’ (found in Advanced Settings) is enabled (this ensures that if a field is repeated within the document, each version is redacted)
  3. Upload documents to view fields to be redacted in the document validation interface
  4. (optionally) Edit and update model predictions
  5. Use the Get Redacted Document endpoint to return a redacted PDF version of the original document
Get in contact with the Affinda team to discuss your redaction use case and to enable a ‘redaction’ setting on your document type that will optimise for this output
Redacted Document example

Exporting redacted file via API

curl -L -X GET "https://api.affinda.com/v3/documents/<DOCUMENT_ID>/redacted" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -o redacted_<DOCUMENT_ID>.pdf

Frequently Asked Questions about Redaction