I have a flow, where I am checking in a condition whether the file in question is a PDF or not.
If the file is a PDF, then the file content is set in variable declared earlier in the flow. If its not a PDF, then the file gets converted into a PDF through an encodian action and saved in the same variable.
After the condition, I am trying to Apply OCR on the file.. But I am always getting the error - "Please provide a valid PDF document"
I have tried converting the variable to base 64 format but that still gives the error.
Has anyone faced a similar issue in the past and is aware of a workaround?