Hi Suraj,
I'm not sure about your situation, but I found myself downloading base64 encoded PDF's to my app which I then needed to display.
I also use Phonegap 2.0.0
My solutions:
Android: Modified a plugin that allows me to store the downloaded file on the SD Card.
After storing it, an intent is thrown that offers the file to the system's PDF reader(s). (If any)
I based my code on:
http://stackoverflow.com/questions/11388018/phonegap-plugin-to-convert-base64-string-to-a-png-image-in-androidThis works like a charm for me.
iOS: I use the childbrowser plugin to have the PDF opened via direct URL input
Instead of opening a URL like
www.somewhere.com/something.pdf I just pass it a url like:
data:application/pdf;base64,YOURBASE64DATAHERE
That works like a charm for me but my PDF document is only 1 page with a small graphics and a bunch of text.
I have not tested large(r) documents.
I currently don't have time to put this stuff online and turn in into a tutorial but I will asap.
(Or pay me, then I'll make time :-P )