Hi! I’m trying to extract tracking data from PDF attachments in Gmail using n8n.
Current flow:
Gmail Trigger → Get Message → IF → Code → Sheets
Issue:
- Attachments are received as binary (attachment_0)
- I’m not sure how to properly read and extract text from a PDF (looks like scanned)
Questions:
1. What is the best way to process PDF attachments in n8n?
2. Should I use an OCR API or is there a native way?
3. How do I access the binary file correctly in the next node?
Thanks!