🧩 How to Use the Plugin (Step-by-Step)
1️⃣ Add the Element
Add Document Redactor Pro to your page
It’s a non-visual element
2️⃣ Select a File (User Upload)
Use the plugin’s Select File action (or your existing upload logic).
The original PDF:
stays in the browser
is never uploaded
is discarded after processing
3️⃣ Configure What to Hide (Properties)
🔹 Elements to Hide
Format (comma-separated):
John Doe, 21yo, A12345
➡ Any of these values will be redacted wherever they appear.
🔹 Hide Word After Keywords
Format (comma-separated):
Age, DOB
Example PDF text:
Age: 21yo male
Result:
21yo → redacted
“male” → untouched
🔹 Hide Line After Keywords
Format (comma-separated):
Patient Name, Address
Example PDF text:
Patient Name: John Doe
Result:
John Doe → redacted
4️⃣ Run the process_document Action
Trigger the process_document action (e.g. on button click).
What happens internally:
PDF is read into memory
Redaction rules are applied
Black boxes are drawn
A new PDF is rebuilt
Only the redacted file is uploaded to Bubble CDN
5️⃣ Use the Outputs
📤 Exposed States
State Description
processing_status processing / complete / error
progress_percent Live progress (0–100)
items_redacted Number of redactions applied
audit_trail_json JSON list of redactions
redacted_file_url URL of the safe PDF
error_message Error details (if any)
You can:
Save the URL to the database
Display it for download
Trigger workflows on completion
EDITOR:
https://bubble.io/page?id=testlpu&test_plugin=1769098746059x770673849824706600_current&tab=Design&name=document_redactor_pro&type=page&elements=cmtaCDEMO:
https://testlpu.bubbleapps.io/version-test/document_redactor_pro