LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

deda_anonmask_create

Build a calibration mask for printer tracking dots

TLDR

Write the calibration page
$ deda_anonmask_create -w
copy
Read a scan of that page and write the mask
$ deda_anonmask_create -r [calibration.png]
copy
Copy the printer's dot pattern into the mask instead of anonymising it
$ deda_anonmask_create -r [calibration.png] --copy
copy

SYNOPSIS

deda_anonmask_create -w [options]deda_anonmask_create -r file [options]

DESCRIPTION

deda_anonmask_create is the first half of DEDA's print anonymisation. -w writes testpage.pdf. Print that file with no page margin, scan the printout at about 300 dpi in a lossless format, and pass the scan to -r. The command writes mask.json, which deda_anonmask_apply stamps onto later PDFs before they are printed.One of -w or -r is required. --copy makes the mask reproduce the dots the printer already prints, rather than a pattern meant to hide them.

PARAMETERS

-w, --write

Write a calibration PDF to testpage.pdf in the working directory. Mutually exclusive with -r.
-r file, --read file
Read a scan of a printed calibration page and write mask.json. Mutually exclusive with -w.
-c, --copy
Store the printer's own dot pattern in the mask instead of an anonymising pattern. Used with -r.
-v, --verbose
Repeat to print more diagnostic detail.

CAVEATS

-w always writes testpage.pdf, and -r always writes mask.json, both in the current directory. Existing files at those names are overwritten.The scan has to show the calibration dots. Margin scaling, a lossy format, or a driver that drops the yellow channel produces a mask that will not line up. --copy is a different operation from anonymisation: the printed page still carries a readable pattern.

HISTORY

deda_anonmask_create is part of DEDA, written by Timo Richter and Stephan Escher and described in their 2018 paper on forensic analysis and anonymisation of printed documents.

SEE ALSO

RESOURCES

Copied to clipboard
Kai