Drawing Anonymizer
v0.1.0Anonymize drawing PDFs: mask names, logos, addresses, emails; flattened PDF or expiring link.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
analyze_drawing Analyse a drawing PDF for sensitive data (Imnoo drawing analysis)
Upload a technical-drawing PDF to Imnoo's drawing analysis and return the sensitive data it finds — company names, logos, person names, addresses, phone numbers, emails, websites, article numbers, drawing numbers, dates and other identifying text — each with a detection id, category, value, PDF page, box (analysis image pixels), confidence, whether it sits in the title block and whether it is masked by default, plus the page sizes. Up to 4 pages are treated as one drawing. Analysis takes roughly 10–120 s; the call waits up to timeout_seconds and otherwise returns status "processing" with…
| Parameter | Type | Description |
|---|---|---|
drawing_id | string | instead of pdf_path: the drawing_id of an earlier upload that returned status "processing" — keeps waiting for it without a new upload |
pdf_path | string | path to the drawing PDF (vector or scanned, ≤ 30 MB) |
save_analysis_to | string | write the analysis JSON to this path (re-open it later with load_analysis, no upload needed) |
timeout_seconds | integer | how long to wait for the analysis before returning "processing" (default 180) |
load_analysis Open a saved drawing analysis (offline)
Open a drawing analysis JSON saved earlier (analyze_drawing with save_analysis_to, or the Imnoo FileStore analysis document) and register it as a drawing for review_masking and mask_drawing. Fully offline — no upload, no daily credit. Pass pdf_path as well: masking needs the original PDF, and custom terms search its text.
| Parameter | Type | Description |
|---|---|---|
analysis_path * | string | path to the analysis JSON |
drawing_id | string | id to register the drawing under (default: the analysis id, else the file name) |
pdf_path | string | path to the matching drawing PDF (needed to write the masked PDF) |
review_masking Review what the masked drawing will hide
Compose the masks for an analysed drawing exactly as mask_drawing will, without writing anything: which detections are masked (with their replacement in mode "replace") and which stay visible, custom-term matches, rectangles, the article-number stamp, the pages written, the anonymity score (0–100) with its warnings, the output file name, and visible_text_after_masking — the text a reader will still see on each page (from the PDF text layer). Use it to find leftovers (a customer name in the notes, a person the analysis missed) and add them as terms or rectangles. Deterministic and offline â…
| Parameter | Type | Description |
|---|---|---|
drawing_id * | string | from analyze_drawing or load_analysis |
masking | object | Masking settings — shared by review_masking and mask_drawing; pass the same object to both so the PDF matches the reviewed masks. Everything is optional; the defaults reproduce the web app. |
mask_drawing Write the masked (anonymized) drawing PDF
Mask the drawing and write the anonymized PDF: blank (or replacement-text / own-logo) boxes over every masked detection, custom term and rectangle; by default every page is then rasterized at 288 dpi so the covered content is destroyed rather than painted over (tamper-proof single-layer PDF) and the document metadata (author, title, producer, XMP) is removed. Optional coverage report page and page selection. share_link additionally uploads the MASKED copy (never the original) and returns an expiring public link (1m, 15m, 1h or 24h). Accepts drawing_id (from analyze_drawing/load_analysis) or pd…
| Parameter | Type | Description |
|---|---|---|
drawing_id | string | from analyze_drawing or load_analysis |
masking | object | Masking settings — shared by review_masking and mask_drawing; pass the same object to both so the PDF matches the reviewed masks. Everything is optional; the defaults reproduce the web app. |
output_path | string | target .pdf path, or a directory (default: next to the drawing PDF, else the working directory) |
overwrite | boolean | allow replacing an existing output file |
pdf_path | string | the drawing PDF — analysed first when it is not known yet (one daily credit), or the original PDF for a drawing_id loaded without one |
share_link | string | also create an expiring public link to the masked copy, valid for 1 minute, 15 minutes, 1 hour or 24 hours |
timeout_seconds | integer | with pdf_path: how long to wait for the analysis (default 180) |