How to anonymize a document using the field values

Tabla de contenidos

Get anonymized items from PDF metadata values (op_anonymize_pdf_metadata_values)

This operation finds in the PDF all occurrences of the values of the fields marked as sensitive and saves their coordinates. It is designed for fixed-structure documents—contracts, forms, invoices—where the data has already been extracted as metadata and reliable redaction is needed.

The operation does not generate the anonymized document by itself. It must be run before the Anonymize document operation, which is the one that applies the redactions on the PDF based on the saved coordinates.

Mark the fields that must be hidden

Go to the document type settings and enter the settings for each field whose value you want to hide. Enable the toggle This field contains sensitive data. Repeat this step for all required fields.

Only fields that have an extracted value in the document will be processed. Marked fields without a value do not produce any redaction.

Add the operations to the process

The process for the document type must include the following two operations, in this order:

Get anonymized items from PDF metadata values: finds in the PDF the occurrences of the values of the fields marked as sensitive and saves their coordinates.

Anonymize document: applies the redactions and generates the anonymized PDF.

Parameters

Extract text: enable it only when the document is a scanned PDF without a digital text layer. It is not necessary for digitally generated documents.

Considerations

The search is exact. The system searches for the field value exactly as it is stored, applying only basic normalization (removal of leading and trailing spaces). If the value in the document has a different format than the stored one—date with a different separator, number with thousands separators—the occurrence may not be detected.

All occurrences are redacted. If the value appears multiple times in the document, all of them are redacted. If a value is very short, unwanted matches may occur in other parts of the text.

Scanned PDFs. If the document does not have a digital text layer and the Extract text parameter is not enabled, no occurrences will be detected and no redaction will be generated.