Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Read excel from Acrobat Javascript

$
0
0

Hi,

 

Our requirement is to upload an excel from pdf form, parse it and display it in table format.

 

I could get the excel through upload button and the code is given below :

 

var myDoc = event.target;

myDoc.importDataObject({cName: sFile });

var rstr = myDoc.getDataObjectContents(sFile);

var vFile = util.stringFromStream(rstr, "utf-8");  

 

 

But when i print vFile variable value, it is throwing some junk characters.

 

 

Please help me in getting the excel data from particular sheet in excel.

 

 

Regards,

Sudha


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>