1

How to create powerpoint file using xml or javascript, i want to create powerpoint file using javascript, i have some sample code

var xml = '<?xml version="1.0" standalone="true"?>';
xml += '<?mso-application progid="PowerPoint.Show"?>';        
//xml +='<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:p="urn:schemas-microsoft-com:office:powerpoint">';    
xml +='<pkg:package xmlns:pkg="http://schemas.microsoft.com/office/2006/xmlPackage">';
Rockstar
  • 2,228
  • 3
  • 20
  • 39
  • 1
    Read [THIS](http://stackoverflow.com/questions/12144346/create-powerpoint-with-javascript), and [Pure JS PowerPoint 97-2003 (PPT) Parser](https://github.com/SheetJS/js-ppt). – Explisam Jun 10 '16 at 10:39

1 Answers1

1

You can create a ppt file inside file cabinet easily. Just you need to have appropriate type name and format. See the below code :

var file = nlapiCreateFile('sample.ppt', 'POWERPOINT', xml);

Note : your string xml has to be base64 encoded.

Rockstar
  • 2,228
  • 3
  • 20
  • 39