A simple digital PDF
The text is selectable, the layout is clean, the fields are labelled. This is the easy part; most tools work here.
The last check before a document leaves: for scanned bank, legal and corporate documents bound for a court, an auditor, a data subject, an AI tool or the archive.
mascdoc reads scanned and digital PDF and TIFF documents with our own unified OCR, finds the parties’ names, addresses, account and reference numbers with models trained on our own data, and masks them with consistent pseudonyms without breaking the layout. All of it happens on your computer or server.
COMMERCIAL INVOICE No: INV-7311-80952
Seller: MERIDIAN EXPORT CO., LTD.
12 Lake Avenue, Ningbo, CHINA
Buyer: DERİN DOKUMA SAN. VE TİC. A.Ş.
L/C No: LC9183025 Bank: DELTA BANKASI
Port of loading: NINGBO Amount: USD 45,674.37
| Field | Type | Method |
|---|---|---|
| Invoice no | REFERENCE | rule |
| Seller | ORGANIZATION | 2 models |
| Seller address | ADDRESS | model |
| Buyer | ORGANIZATION | rule + model |
| L/C no | REFERENCE | rule |
| Bank | ORGANIZATION | rule + model |
Representative example. Not a real customer document.
NOT A SIMPLE PDF
Most document masking tools on the market are built for tidy PDFs whose text can be selected. The documents a bank holds are scanned, stamped, patterned and multilingual. Below you see both side by side; the same product masked them.
The text is selectable, the layout is clean, the fields are labelled. This is the easy part; most tools work here.
A patterned security background, overlapping stamps, Chinese and English, a handwritten signature, a QR code. mascdoc covered the exporter, consignee, serial and invoice numbers, the Chinese seal and the QR code; the expert added two small areas on the review screen. Sample: prepared after real examples; party names, numbers and goods are fake. The signature, the seal and a few small traces were also blacked out by hand for publication.
A scanned document has no selectable text. A tool that looks at the text layer finds nothing here. The page first has to be read correctly: under the pattern, the stamp and the signature.
IBANs and ID numbers can be found with a pattern. Company names, addresses and personal names cannot; telling them apart takes a model that knows the language of the document.
Turkish, English and Chinese on the same page. mascdoc replaces a Chinese name with a Chinese pseudonym. We are trying Russian, Arabic and Hindi documents in our test editions.
General models are trained on clean, single-language text. Ours were trained on trade-finance documents on our own hardware, and training continues as new documents arrive.
MANUAL REDACTION
In 2025–2026 the Epstein files showed how even the most careful institutions struggle with manual redaction. mascdoc output carries no text layer, metadata or hidden attachments.
That’s how many people the FBI put on manual review to prepare the Epstein files; it paid $851,344 in overtime in a single week.
In the February 2026 release, 43 of the victim names checked by the WSJ had not been redacted.
On some pages, the text under the black boxes could be copied and read. That can’t happen with mascdoc output: in our internal test the text layer was 0 characters.
MOST IMPORTANT: IT RUNS LOCALLY · ON-PREMISE
Reading, detection, masking and verification happen on the same machine. The document is not uploaded to any cloud service.
mascdoc never sees or keeps your documents and does not train its models on them. After installation, no requests go out.
It runs in banks’ closed networks, on servers with no internet connection. The only thing that leaves is the masked copy you approve.
MASCDOC · MOBILE · COMING
Our next step is the phone: scan a physical document with the camera and mask simple documents right on the phone, without the cloud; for heavier work, hand the document over to mascdoc on your computer.
Light detection and OCR models will run on the phone; simple documents will be masked without going to the cloud.
A document captured on the phone will move to mascdoc on the computer for advanced masking and review.
One workflow from phone to desktop; the document never leaves your own devices.
COMMERCIAL INVOICE
Seller: ORNEK TRADING LTD.
IBAN: TR12 0006 1005 1978
Buyer: ORNEK TEKSTIL A.S.
Amount: USD 45,674.37
Document received: ready to open on the review screen.
Tap the steps: scan, mask, hand over. Illustrative design.
LANGUAGES
In the product
In the test edition
A Chinese company name becomes a Chinese pseudonym and its Latin-script name a Latin one; the same party gets the same name everywhere.
CONTINUOUS TRAINING
700+We retrain our models with newly arriving documents. Every new document type and language makes the product a step stronger. Training runs on our own hardware; documents never go to a cloud.
ON A TRUE-TO-LIFE SAMPLE
A Chinese header, an overlapping stamp, the same company name in two languages, a stamped and skewed scan: these are the documents mascdoc handles. Use the buttons to switch between the sample itself and the black-bar and pseudonym outputs.
SAMPLE01 — WHY MASCDOC
At a bank, a law firm or a company, documents want to leave every day: to cloud OCR, AI analysis, a correspondent bank, an auditor, the software team’s test environment. Each time someone has to clean them by hand. mascdoc makes that fast, consistent and recorded.
The masked copy carries no secret values. It can go to cloud OCR, document analytics, an LLM, an outside advisor or a test environment. Your institution gets the speed of these tools without exposing a customer’s name or account.
See the data flow →With manual masking an expert reads and blacks out a file of dozens of pages line by line. mascdoc processes a page in about a minute; your expert only checks the few flagged places. Expert time goes into decisions, not into redrawing documents.
Compare with manual masking →A company gets the same pseudonym on every page and in every document of the file. Invoice, bill of lading and letter of credit still read as one set, so analysis on the masked documents stays sound.
How consistency works →The masked output is read again; if a party name is still visible, the document is held back. Which field was closed by which method goes into an audit log. Manual masking leaves no such trace.
Security details →02 — CONSISTENCY
Consistency is what keeps a masked document usable. mascdoc recognises a party once and replaces it the same way everywhere.
A seller that becomes “MERIDIAN EXPORT” on page one is still “MERIDIAN EXPORT” on page thirty. Its address, bank account and references change the same way.
The consistency register gives the same party the same pseudonym across the invoice, bill of lading, letter of credit and SWIFT message of one customer file. The masked file reads as connected as the original.
“A.S.” and “A.Ş.”, titles that lost Turkish characters and letters broken by OCR are tied to one party. A party’s short and long names are not invented separately.
Bank names come from a fixed pool of bank names, companies stay companies, numbers keep their length and format. Amounts, ports, goods and dates stay as they are.
03 — WHICH DOCUMENTS
Banking, legal and corporate documents are multilingual, multi-column, stamped and often badly scanned. mascdoc was trained and measured on the hardest of them, trade-finance documents.
From letters of credit, bills of lading and SWIFT messages to account statements, loan files, letters of guarantee and receipts; from contracts, powers of attorney, petitions and court decisions to invoices, HR files and supplier correspondence. Dozens of pages in one file, each in a different layout.
Turkish, English and Chinese on the same page. Chinese company and bank names, titles that lost their Turkish characters, different spellings of the same party: “ÖRNEK KATILIM BANKASI A.S.” and “Örnek Katılım Bankası A.Ş.” are one party.
Skewed or low-resolution scans, text running over stamps and signatures, multi-column forms, long addresses split across lines, words glued together and reference numbers read as “N0.” instead of “NO.”.
04 — OUR OWN TECHNOLOGY
We saw the mistakes general-purpose cloud services make on these documents and rebuilt every layer for them.
Our own unified OCR layer runs several reading models together: the one that best recovers the page layout is combined with the one that reads text most accurately, and hard pages get a second opinion. Our trade-document correction rules sit on top. Turkish, English and Chinese are read in the same pass.
We trained our models ourselves. We labelled and checked hundreds of pages of trade-finance documents. All training ran on our own hardware, an NVIDIA DGX Spark; no document ever went to a cloud. The result is models that know the language of these documents: GLiNER and BERT find companies, banks, people, addresses and reference numbers despite OCR errors. We keep training as new documents arrive.
A language model we trained on our own data decides on uncertain findings by looking at the whole page: is this a party’s name, or a port or boilerplate? In our internal test it cleared about 60% of unnecessary masks while touching only 3 in 1,000 real fields. Coming to the server edition.
Fixed formats such as IBAN, SWIFT/BIC, tax number, phone and e-mail are found by rules. The masked output is read again; if a party name shows from under a mask, the document is set aside for review rather than shared silently.
05 — FOUR LAYERS, ONE AIM
Leaving a secret visible costs far more than covering one extra word. That is why mascdoc is tuned not to miss.
Reads the scanned page word by word, with positions, using our own unified OCR. Flags pages it cannot read.
IBAN, SWIFT/BIC, tax numbers, phones, e-mails and document numbers are found with exact rules.
Models we fine-tuned on our own data from trade documents find companies, banks, people and addresses. Every finding carries a confidence score.
Values are replaced with look-alike substitutes that fit the layout, or covered with a black bar. Places the model is unsure about are flagged for review.
06 — PEOPLE AND AI, TOGETHER
mascdoc scans and masks thousands of words in a document within minutes. Your expert doesn’t check all thirty pages, only the few places that are flagged. Nothing is shared until it is approved.
Check these first
Possibly excess
BILL OF LADING B/L NO. ████████
Shipper: ██████ TRADING CO., LTD.
██ ████████ ROAD, ████████
Consignee: TO THE ORDER OF ████████ BANK
Port of loading: NINGBO PORT Ref: NO.25AJY191SH
Description: 1 x 40HC POLYESTER YARN UCP600
Values the model saw with low confidence and left open sit at the top of the list. If one is secret, a single click masks it.
Uncertain findings arrive masked. You can open the ones that aren’t secret, like a port name or contract wording; if you leave them, nothing leaks.
Draw a box over anything missed and the document is masked again. On approval the original copy is deleted from the job folder.
07 — WE CLAIM ONLY WHAT WE MEASURED
Measured on trade-finance documents never seen in training. Every page was fully labelled, and a field only counts as covered when every character is masked.
Across 1,011 secret fields on 77 full pages from 12 documents unseen in training, through the complete product pipeline.
On an Apple Silicon Mac with high-resolution OCR; a ten-page bill of lading takes 7–10 minutes. Faster on a GPU server.
In an institutional installation every step, OCR included, runs on the institution’s own machines.
Internal measurement; results vary with document type and scan quality. Most missed fields are a single piece of a long address, which is why we recommend using mascdoc with the review screen and human approval. Complete detection is not guaranteed.
08 — DESIGNED FOR INSTITUTIONS
Models ship with the installer. Nothing is sent out while it runs; it works inside a bank network and on offline servers.
Stand-in values are written in the same place at the same size. Port, amount, goods and dates stay readable, so the document stays useful.
The masked output is read again. If a party name shows or a page could not be read, the document is set aside for review instead of being shared silently.
Each document gets an audit record of which field was found by which method; original values never enter the shared report.
09 — FREQUENTLY ASKED
Scanned or digital PDF and TIFF. Banking documents (letters of credit, bills of lading, SWIFT messages, account statements, loan files, letters of guarantee), legal documents (contracts, powers of attorney, petitions, court decisions) and corporate documents (invoices, HR files, supplier correspondence). Our measurements were made on the hardest type, trade-finance documents, including mixed Turkish, English and Chinese pages.
Sometimes, yes. mascdoc is tuned not to miss; it masks a doubtful word rather than leave it open. These extras sit in the “may be extra” list on the review screen and open with one click. The judge language model we trained on our own data cleared about 60% of them in our internal test; it is coming to the server edition.
The desktop edition runs on Apple Silicon Macs (16 GB of memory or more recommended); the server edition runs on Linux, where an NVIDIA GPU speeds it up but is not required. For Windows, request it and we will prepare it for you.
In scanned documents, ink, stamps and poor scans can break the reading. In our measurements the great majority of fields are covered automatically; your expert closes the small remainder in a few minutes. For banks this is the safest arrangement: machine speed, human judgement.
No. The product does not keep or send out your documents to learn from them. In the enterprise edition, only if you ask and with your permission, the models can be tuned to your documents inside your own environment.
mascdoc reads a scanned or digital document and masks it permanently; the output is the copy you share outside. Prompt Masking works on text and prompts and can reverse the mask with a key, so context is kept while you work with AI.
Manual masking is slow, varies from person to person, and attention fades over a long file: the same company is masked on one page and forgotten on another. Black bars make the document unreadable and leave no record of who masked what and why. mascdoc applies the same rules with the same care on every page, keeps the document readable with pseudonyms and logs every decision; your expert only checks the flagged places.
The same real party gets the same pseudonym on every page of a document. With the consistency register on, the mapping also holds across separate documents: the invoice, bill of lading and letter of credit in one file carry the same pseudonym for the same customer. Spelling variants (“A.S.” / “A.Ş.”, titles that lost Turkish characters) are tied to one party; bank names come from a fixed pool of bank names, so a bank still reads as a bank.