I’m building a PDF redaction app on Bubble. Claude AI successfully detects PII from uploaded PDFs and displays redaction items (names, SSNs, phone numbers etc) on an editor page. When the user clicks ‘Generate Redacted PDF’, the app calls PDFco SearchRedact to black out those words.
The problem: When I click Generate Redacted PDF, I get a PDFco error ‘URL not valid’ and ‘SearchStrings should contain at least one record’. The redaction summary popup shows but the Download Redacted PDF button opens a blank page because no redacted file was generated.
My Generate Redacted PDF workflow:
Step 1 - Show summary popup
Step 2 - Run Javascript
Step 3 - PDF.co Upload File
Step 4 - PDF.co SearchRedact (file_url = Step 3 URL, search_terms = Document’s pii_text)
Step 5 - Save redacted_file to Document
How do I correctly pass the file URL and search terms to PDFco so it generates and returns a downloadable redacted PDF?