Book a call

MASCDOC · USER GUIDE

From setup to approval,
step by step.

Data minimisation, pseudonymisation and security measures are the most asked-about technical duties under KVKK and GDPR. mascdoc applies them inside your document and prompt flow and records every decision.

01

Setup

Unpack the mascdoc-YYYYMMDD.zip file we send you and move the folder wherever you like.

Mac: double-click mascdoc.command. If macOS warns about an “unidentified developer”, right-click the file and choose Open. On first launch the setup prepares Python, the OCR components and the bundled models itself; it takes about 10 minutes and is the only step that needs internet.

Linux server: run ./scripts/install.sh in the folder. Details are in the last section.

A sign-in screen appears on first launch. The administrator password is generated during setup and shown on screen; write it down. Accounts are stored only on this computer.

02

Mask your first document

  1. Choose a PDF, TIFF or image with File…. With Folder… you can add every document in a folder.
  2. Choose the mask type: the recommended setting is substitute values.
  3. Press Mask. mascdoc reads the pages, finds the secret fields and masks them. It takes about a minute per page.
  4. When it finishes, press Review (⌘I). The review screen opens in your browser; the document still stays on this computer.
03

The review screen

Checklists sit on the left of the screen and the page itself on the right. Every mask on the page is shown as a coloured box:

  • Green: masked.
  • Yellow: masked, but the model is unsure.
  • Red dotted: possibly missed; not masked.
  • Blue dashed: a box you added.

1. Possible misses. This sits at the top of the list; look at it first. The model saw these values with low confidence but left them open. If one is truly secret, press Mask.

2. Suspicious pages. Pages that are hard to read, upside down or faint are listed here. Check them by eye.

3. Possibly excess. Masked, but the model is unsure; a value that appears in several places is grouped into one line. You don’t need to touch these for safety. If something that isn’t secret was covered, like a port or contract wording, press Unmask.

Spotted something missed? In the “Original + masks” view, drag with the mouse to draw a box. Clicking a box undoes it.

If you made changes, press Apply changes; the document is masked again from the original copy. Check the result in the “Masked output” tab. When ready, press Approve and download. On approval the original copy is deleted from the job folder.

04

Mask types

Substitute values

Recommended. Each value is replaced with a substitute of the same shape and length. The same party gets the same substitute everywhere in the document, so it stays readable and useful.

Black bar

The value is covered with a black box. For documents a person will read but where no value may be visible.

X fill

The letters of the value are replaced with X, keeping its length. For transfers between systems and test data.

05

Output and audit log

The masked document is written to the output folder you choose. Your original document is not changed.

An audit log is kept for every document: which field was found by which method and masked. The shareable summary contains no original values. The full log stays only on this computer, in a folder only you can read.

The masked output is read again to verify it. If anything is doubtful, the document is set aside as a file with INCELEME (review) in its name; it never goes out silently.

06

Privacy

OCR, detection and masking run on the same machine. After setup mascdoc sends no requests outside; documents, results and logs stay in your organisation.

The review screen opens only from this computer. Lists that show original values never go into any shareable report.

A cloud OCR or language model is used only if you explicitly choose and approve it; it is off by default.

07

Troubleshooting

The app won’t open and says “unidentified developer”.
Right-click the file and choose Open. This is needed only the first time.
A page was read as blank or nonsense.
The scan may be upside down, very faint or very small. The page appears in the “suspicious pages” list; if possible, scan it again at a higher resolution.
A word that isn’t secret was covered.
On the review screen, click the mask or press Unmask in the list, then Apply changes.
A value was left visible.
Draw a box over it in the original view and apply. Please tell us too; it helps us improve the model for similar documents.
Masking is slow.
On a dense document it can take up to a minute per page. You can run batches overnight or use a GPU server.
08

For IT teams

Server setup (Linux):

unzip mascdoc-YYYYMMDD.zip && cd mascdoc-YYYYMMDD
./scripts/install.sh
.venv/bin/python -m pdf_anonymizer.api --port 8788

By default the server listens only on 127.0.0.1. Listening on any other address requires an access key set with MASCDOC_API_TOKEN.

Other systems send a document with POST /v1/anonymize?filename=belge.pdf and fetch the result with GET /v1/jobs/{id}/file. Jobs that need human approval are opened with &review=1 and appear on the /inceleme screen.

Output that fails verification is not served by the API by default; job folders are deleted after 24 hours. We work with you on installation and network settings: write to us.

Last updated: 5 November 2026 · Version 2026.11.05 beta