How do I paginate the combined pdf files. How do I find the Master Page?
There's no such thing as a "master page" in PDF files (except those created using LiveCycle Designer).
Your questions are very vague. Please try to explain what you mean a bit more in detail.
Retrieving data ...