{"id":1985,"date":"2016-02-03T16:14:11","date_gmt":"2016-02-03T16:14:11","guid":{"rendered":"http:\/\/www.ericwhite.com\/home2\/bm8qcmjy\/public_html\/blog\/?page_id=1985"},"modified":"2016-02-04T09:15:56","modified_gmt":"2016-02-04T09:15:56","slug":"open-xml-sdk-for-javascript","status":"publish","type":"page","link":"https:\/\/www.ericwhite.com\/blog\/open-xml-sdk-for-javascript\/","title":{"rendered":"Open XML SDK for JavaScript"},"content":{"rendered":"<p class=\"apiPara\"><span class=\"Back\" style=\"width: 10%;\"><a class=\"Back\" href=\"https:\/\/www.ericwhite.com\/blog\/open-xml-developer-centers\/\">Return<\/a><\/span>The Open XML SDK for JavaScript is a light-weight JavaScript API that enables you to create, modify, or query Open XML documents.&nbsp; It is useful in the following scenarios:<\/p>\n<ul>\n<li class=\"apiLi\">Client-side Open XML applications that run in the browser<\/li>\n<li class=\"apiLi\">Server-side applications using Node.js<\/li>\n<li class=\"apiLi\">Windows 8 &ldquo;Windows Store&rdquo; applications<\/li>\n<li class=\"apiLi\">Apps for Office Client 2013<\/li>\n<li class=\"apiLi\">Apps for SharePoint 2013<\/li>\n<\/ul>\n<p class=\"apiPara\">You must be familiar with the Open Packaging Conventions (OPC) in order to use the Open XML SDK for JavaScript.&nbsp; If you need a refresher on OPC, you can watch the screen-casts on OPC (#7 and #8 in the screen-cast series <a href=\"https:\/\/www.ericwhite.com\/blog\/introduction-to-open-xml-series\">Introduction to Open XML<\/a>).&nbsp; You may also be interested in reading the MSDN article <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/office\/ee361919.aspx\">Essentials of the Open Packaging Conventions<\/a>.\n<\/p>\n<p class=\"apiPara\">Download: <a href=\"http:\/\/openxmlsdkjs.codeplex.com\/\">Open XML SDK for JavaScript<\/a><\/p>\n<h2 class=\"apiSubHead\">Table of Contents<\/h2>\n<div id=\"oxdDocToc\">\n<ul>\n<li>\n            <a href=\"#\">Guide<\/a><\/p>\n<ul>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/scenarios-of-the-open-xml-sdk-for-javascript\/\">Overview of Scenarios for the Open XML SDK for JavaScript<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/overview-of-the-open-xml-sdk-for-javascript-api\/\">Overview of the Open XML SDK for JavaScript API<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/open-xml-sdk-for-javascript-demo\/\">Document Generation Demo<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/the-use-of-linq-to-xml-for-javascript\/\">Linq to XML for JavaScript<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/open-xml-element-and-attribute-names\/\">Pre-initialized Open XML Element and Attribute Names<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/accessing-parts-using-convenience-functions\/\">Accessing Parts using Convenience Functions<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/uploading-downloading-documents-into-the-open-xml-sdk-for-javascript-using-html5\/\">Uploading and Downloading Documents using HTML5<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/the-use-of-flash-and-the-open-xml-sdk-for-javascript\/\">Use of Flash to Enable Uploading and Downloading Documents<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/customizing-the-uploaddownload-buttons-when-using-flash-and-openxmlsdk-for-javascript\/\">Customizing the Upload\/Download Buttons when using Flash<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/using-a-template-document-with-the-open-xml-sdk-for-javascript\/\">Using Template Documents<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/accessing-spreadsheets-using-the-open-xml-sdk-for-javascript\/\">Accessing Spreadsheets<\/a>\n                <\/li>\n<\/ul>\n<\/li>\n<li>\n            <a href=\"#\">OpenXmlPackage<\/a><\/p>\n<ul>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage_base64\/\">new OpenXmlPackage(base64)<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage_flatopc\/\">new OpenXmlPackage(flatOpc)<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage_addpart\/\">addPart<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage_addrelationship\/\">addRelationship<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-deletepartpart\/\">deletePart<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage_deleterelationship\/\">deleteRelationship<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getcontenttype\/\">getContentType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getpartbyid\/\">getPartById<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getpartbyrelationshiptype\/\">getPartByRelationshipType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getpartbyuri\/\">getPartByUri<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getparts\/\">getParts<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getpartsbycontenttype\/\">getPartsByContentType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getpartsbyrelationshiptype\/\">getPartsByRelationshipType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getrelationshipbyid\/\">getRelationshipById<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getrelationships\/\">getRelationships<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getrelationshipsbycontenttype\/\">getRelationshipsByContentType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-getrelationshipsbyrelationshiptype\/\">getRelationshipsByRelationshipType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-savetobase64\/\">saveToBase64<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpackage-savetoflatopc\/\">saveToFlatOpc<\/a>\n                <\/li>\n<\/ul>\n<\/li>\n<li>\n            <a href=\"#\">OpenXmlPart<\/a><\/p>\n<ul>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-addrelationship\/\">addRelationship<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-deleterelationship\/\">deleteRelationship<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getpartbyid\/\">getPartById<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getpartbyrelationshiptype\/\">getPartByRelationshipType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getparts\/\">getParts<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getpartsbycontenttype\/\">getPartsByContentType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getpartsbyrelationshiptype\/\">getPartsByRelationshipType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getrelationshipbyid\/\">getRelationshipById<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getrelationships\/\">getRelationships<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getrelationshipsbycontenttype\/\">getRelationshipsByContentType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getrelationshipsbyrelationshiptype\/\">getRelationshipsByRelationshipType<\/a>\n                <\/li>\n<li>\n                    <a href=\"https:\/\/www.ericwhite.com\/blog\/openxmlpart-getxdocument\/\">getXDocument<\/a>\n                <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>ReturnThe Open XML SDK for JavaScript is a light-weight JavaScript API that enables you to create, modify, or query Open XML documents.&nbsp; It is useful in the following scenarios: Client-side Open XML applications that run in the browser Server-side applications using Node.js Windows 8 &ldquo;Windows Store&rdquo; applications Apps for Office Client 2013 Apps for SharePoint [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_s2mail":"","footnotes":""},"class_list":["post-1985","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages\/1985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/comments?post=1985"}],"version-history":[{"count":64,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages\/1985\/revisions"}],"predecessor-version":[{"id":2187,"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/pages\/1985\/revisions\/2187"}],"wp:attachment":[{"href":"https:\/\/www.ericwhite.com\/blog\/wp-json\/wp\/v2\/media?parent=1985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}