I am trying to grab the email attachment (PDF) sent to my Mailhook and run Google Cloud Vision (OCR) to grab specific text values within the PDF. When I do a test run, I get an error “Unsupported input file.” from the OCR module.
Image reference:
Thanks heaps!
Fixed it. Solution is to use an Iterator and Array aggregator modules. Iterate the whole Attachment array, create a filter between Iterator and Arra aggregator to only grab the array with MIME type = application/pdf, then tick ‘Data’ under aggregator module to be map unto the OCR module ‘Data’ field.
Hello @JB_Light 
Thank you for coming back and sharing the solution! I believe it might help other Makers in need. 