I'm trying to read multiple documents from a specific folder that contains pdfs, jpgs... the only activity I found is the Read Document, but this activity does not have the option to read all docs under my folder!.
so any one can tell me if there is another activity can do it or is there any good solution to loop on the folder and read all the docs? any script will be helpful.
After many hours of searching and readings, I found a solution, I do not know if it is the best, but anyhow this is my solution:
By using a service operation called "Find" from a service named "FileUtilsService", this operation will return a list of strings with the names of all files and/or directories under the path you want.
Then by using the "Read Document" I was able to get one file and store it in a dcoumnet variable, and by using a simple looping technique I got all the files I want.
hope this will help others
A while ago I needed the same thing, so I wrote up a bit of java code as a DSC for LiveCycle. I read the directory into a list of documents so it can be used later on.
There is also an operation to read file from a URL and to convert a Document into a byte array.
Source code and workbench deployable DSC jar file are attached.
Please note that this is unofficial and not supported by Adobe in any way.