Hi Maksim it's showing below error only.

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

-----------------------------------------------

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

Code looks fine for me
If problem is still appears for you - please provide any kind of demo or a sample where it can be checked