What is your goal?
Output from Google Cloud Vision OCR module successfully results in an array of pdf bundles (one page per bundle). My goal is to aggregate groups of bundles into new pdf files. Each group is identified with a specific word (âSTEINMANNâ) contained in the first bundle of the group. For example, the OCR module results could have 5 bundles. The 1st and the 4th bundle may contain the specific word STEINMANN. In this case, I need to a new pdf created for bundles 1-3, and a separate pdf for bundles 4-5.
What is the problem & what have you tried?
My attempt:
Set Variable - Variable Name = groupID, Variable Value =0
Iterator - Array = Total Number of Bundles (from the OCR module)
Set Variable - Variable Name - groupID,
Variable Value = {{if(contains(5.fullTextAnnotation.text; âSTEINMANNâ); groupID + 1; groupID)}}
Array Aggregator - Source Module = Iterator [6], Aggregated fields = value, Group by = {{7.groupID}}
I canât get the Iterator to run more that once, and I canât get the Aggregator to output a pdf file. Iâm not sure if I even have the right approach. This rookie needs some guidance :-).
Error messages or input/output bundles
BundleValidationError
Validation failed for 1 parameter(s).
Missing value of required parameter ânameâ.