Hi,
I want to display the BASE64 converted data of a pdf into pdf viewer.
Here is the view:
webix.ui({
type:“space”,
id:“pdfview”,
rows:[
{ view:“pdfbar”, id:“toolbar” },
{ view:“pdfviewer”, id:“pdf”, toolbar:“toolbar”}
]
}).hide();
Here is the code to bind the data:
var attachment = this.getItem(id).Attachment;
var lcPDFData = atob(attachment);
lcFileName = { “data”: lcPDFData };
$$(“pdf”).load(lcFileName);
$$(“pdfviewer”).show();
I am getting error like: Uncaught TypeError: Cannot read property ‘getDocument’ of undefined
I am running the code in an android simulator.
Please help.