Hi Nitin,
Thanks for the guidance, Now after building the code and deploying the same in AEM, I am facing the following issue.
I had placed by XDP file in the the following path in dam /content/dam/formsanddocuments/NedbankInc/ and set the same as content root for the PDF options object before calling the generatePDFOutput method.
But I get the following exception
Caused by: java.io.FileNotFoundException: \content\dam\formsanddocuments\NedbankInc\CurrentAccountForm.xdp (The system cannot find the path specified)
Regards -
Ashok Deivasigamani