Hi Anish,
What kind of data are you passing and where are you trying to pass it to exactly? Are you trying to have some data available in your config file or in ReaderControl/MobileReaderControl.js?
One way you could do this is to use the custom WebViewer option. When creating the WebViewer object you would add the custom option like this:
new PDFTron.WebViewer({
custom: JSON.stringify({ someValue: 10 })
...
}, ele);
Then in your config file you would have:
var myData = JSON.parse(window.ControlUtils.getCustomData());
console.log(myData.someValue);
Matt Parizeau
Software Developer
PDFTron Systems Inc.