How topjohnnywu/pdf-censor-redaction works
PDF Censor Studio is a client-side PDF redaction app. Users load a PDF, mark regions for redaction (including across pages), optionally extract DO numbers with OCR, and export a rasterized PDF; templates support reusable layouts. The principal runtime is concentrated in one React component, so several domain-stage nodes share its source path. The README documents PDF.js, Tesseract.js, and the privacy-preserving browser workflow; the excerpts show the app entry point, sample-PDF generation, page rendering calls, and jsPDF export. OCR internals are not excerpted.
Main entry points: pdf-censor-studio.tsx Studio interface · page.tsx App entry · sample-pdf.ts Sample PDF
Components 15
App experience
- App entry
app/page.tsx - Studio interface
components/pdf-censor-studio.tsx
PDF workflow
- PDF.js
- PDF loading
components/pdf-censor-studio.tsx - Page rendering
components/pdf-censor-studio.tsx - Browser canvas
- Redaction regions
components/pdf-censor-studio.tsx - DO extraction
components/pdf-censor-studio.tsx - Tesseract.js
- Sanitized PDF export
components/pdf-censor-studio.tsx - jsPDF
Supporting tools
- Layout templates
components/pdf-censor-studio.tsx - DO results
components/pdf-censor-studio.tsx - Sample PDF
lib/sample-pdf.ts
Other components
- PDF user
Connections 14
- PDF user → App entry: opens
README.md - App entry → Studio interface: loads
app/page.tsx - Studio interface → PDF loading: accepts PDF
README.md - Studio interface → Sample PDF: loads sample
components/pdf-censor-studio.tsx - PDF loading → PDF.js: decodes
README.md - PDF.js → Page rendering: renders pages
README.md - Page rendering → Browser canvas: draws pages
README.md - Studio interface → Redaction regions: marks regions
README.md - Redaction regions → Sanitized PDF export: burns into pages
README.md - Studio interface → DO extraction: requests extraction
README.md - DO extraction → Tesseract.js: recognizes text
README.md - DO extraction → DO results: produces numbers
README.md - Studio interface → Layout templates: manages layouts
components/pdf-censor-studio.tsx - Sanitized PDF export → jsPDF: creates PDF
components/pdf-censor-studio.tsx