Below coding not working to export the value in pdf format

function getTable(a,b :array of string; c:array of integer):string;Javascript;
(*!
  var series= new Array();
  for(var i=0;i<a.length;i++)
  {
     series[i] = {VENDOR:a[i],DATE:b[i],Q:c[i]};
 }
 return series;
*)
----------------------------------------------------------------------------------------
function expor();['optimize=false','obfuscate=false']; Javascript;
(*!
 series.exportToPDF();
  *)
--------------------------------------------------
Procedure Form3.PDFClick(Event: TDOMEvent);
Begin
   expor();
End;
---------------------------------------

datatable is working fine.but i cant able to export the value in pdf.do the needful

Can you provide some more info about the problem ?
Do you have some kind of error message in js console ? or does it just returns the wrong export result ?

Above code looks valid, by the way.

Actually once i click the “pdfclick” it will come back to expor() line.it’s showing below things.

Script Error: “series”.exportToPDF is not a function

exportToPDF is API of datatable, you can call it as a method of plain array.
So you need to create a datatable object, load data in it, and call exportToPDF on the datatable object.