@Shaji_KGL, ah ok, yes that example was under the assumption that your documents have usually more than 1 page. I will see how you can approach this. Do you have a custom service or orchestration and do you know how much pages the pdf has before you construct the DDX? In that case you could control ...