Have a process where:
- tiff multipage document is received in an input folder in LF Cloud repo
- the entry document may contain in its pages, 1 to 6 different type of documents
- each page in the entry document is analyzed with capture profile and a Doc Type is determined for each page
- each doc type might have 1 to n pages.
What I want the WF to do is:
- separate the first page with a given identified document type, and all the following un- identified pages, until a page with a different doc type is found.
- the pages found in step 1 must be cut- off from the entry document and saved as a different document in a different folder
- steps 1 and 2 must be repeated so that new documents are generated and saved in the same folder as specified in step 2-; in every iteration obviously, the number in pages in the entry document will be less and less until no pages are left in the entry document; then it will be eliminated.
Following is a textual representation of the entry document and what should be done:
Page 1 -> Type A -> Start Document A
Page 2 -> Un- identified -> Pertains to Document A
Page 3 -> Un- identified -> Pertains to Document A
cut page 1, 2 & 3 from Entry document and save Document A to a different folder
Page 4 -> Type B -> Start Document B
Page 5 -> Un- identified -> Pertains to Document B
cut page 4 & 5 from Entry document and save Document B to different folder (same folder as Doc A)
Page 6 -> Type C -> Start Document C
cut page 6 from Entry document and save Document C to a different folder (same folder as Doc A & Doc B)
No pages left in Entry Document? -> delete it
Any ideas on how to accomplish this, using LF Cloud workflow, will be greatly appreciated ;)