Is there any way to read cache and cross reference table with the help of groovy ?
No you can not obtain cache data or cross reference data in inputStream directly.
Workaround would be to set the data into a document property using set properties variable and now get the data out via the variable.
Thanks for the response. I will try with your suggested method.
Just be careful with storing a large amount of data in PROCESS properties because they are kept in memory.
I see you already found the related idea: Access cross reference table, document cache programmatically
Retrieving data ...