You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Jeremy.
I have some prombles when i use OpenXmlBuilder.js, can you help me? Thank you.
First, How can I build a new OpenXnlBuilder.js with my template.docx or template.pptx?
------When I run ssh $ npm install
------Error:
5012 error Darwin 15.2.0
5013 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "phantomjs"
5014 error node v4.2.3
5015 error npm v2.14.7
5016 error code ELIFECYCLE
5017 error [email protected] install: node install.js
5017 error Exit status 1
5018 error Failed at the [email protected] install script 'node install.js'.
5018 error This is most likely a problem with the phantomjs package,
5018 error not with npm itself.
5018 error Tell the author that this fails on your system:
5018 error node install.js
5018 error You can get their info via:
5018 error npm owner ls phantomjs
5018 error There is likely additional logging output above.
------Where need phantomjs? i can't success when i try ' npm install ' many many times.
Second, I can success download a example.docx, but I fail in a example.pptx.
-------The download .docx Code: (success download)
// var db = new OpenXmlBuilder.DOCXBuilder(OpenXmlB64Templates.docx, title, created, creator);
// db.docLine(title, db.pStyle("Title"));
// db.docLine("Created " + created.toString(), db.pStyle("Subtitle"));
// db.docLine("HTML translated to native style", db.pStyle("Heading1"));
// // db.docContent(sampleHtml)
// db.docLine("HTML imported as chunk", db.pStyle("Heading1"));
// db.docChunk(sampleHtml)
// //var content = db.saveToBase64();
// var content = db.saveToBlob();
// saveAs(content, "example.docx");
--------The download .pptx Code: (fail)
// var pb = new OpenXmlBuilder.PPTXBuilder(OpenXmlB64Templates.pptx, title, created, creator);
// pb.contentSlide({"Title 1":"Delete this slide", "Subtitle 2" : "Delete this slide to ensure that contents are scaled to fit within the slides." }, 1);
// pb.contentSlide({"Title 1":title, "Subtitle 2" : "Created " + created.toString() }, 1);
// pb.contentSlide({"Title 1":"A question", "Content Placeholder 2" : sampleHtml}, 2);
// var pptcontent = pb.saveToBlob();
// saveAs(pptcontent, "example.pptx");
---------There is a error when run the second code "pb.contentSlide(..)....",
---------Error happen:
PPTXBuilder.prototype = {
.....
contentSlide: function(){
....
var shapes = slide.all("//p:sp");
....
}
....
}
.....
all: function() {
return this.xdoc.all.apply(this.xdoc, arguments);
},
--------- The ERROR " this.xdoc is undefined "
================================
Finally, can you help me in top 2 questions.
Or can you give me a html example to download a example.pptx with OpenXmlBuilder.js.
Thank you very much.
The text was updated successfully, but these errors were encountered:
Hello Jeremy.
I have some prombles when i use OpenXmlBuilder.js, can you help me? Thank you.
First, How can I build a new OpenXnlBuilder.js with my template.docx or template.pptx?
------When I run ssh $ npm install
------Error:
5012 error Darwin 15.2.0
5013 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "phantomjs"
5014 error node v4.2.3
5015 error npm v2.14.7
5016 error code ELIFECYCLE
5017 error [email protected] install:
node install.js
5017 error Exit status 1
5018 error Failed at the [email protected] install script 'node install.js'.
5018 error This is most likely a problem with the phantomjs package,
5018 error not with npm itself.
5018 error Tell the author that this fails on your system:
5018 error node install.js
5018 error You can get their info via:
5018 error npm owner ls phantomjs
5018 error There is likely additional logging output above.
------Where need phantomjs? i can't success when i try ' npm install ' many many times.
Second, I can success download a example.docx, but I fail in a example.pptx.
-------The download .docx Code: (success download)
// var db = new OpenXmlBuilder.DOCXBuilder(OpenXmlB64Templates.docx, title, created, creator);
// db.docLine(title, db.pStyle("Title"));
// db.docLine("Created " + created.toString(), db.pStyle("Subtitle"));
// db.docLine("HTML translated to native style", db.pStyle("Heading1"));
// // db.docContent(sampleHtml)
// db.docLine("HTML imported as chunk", db.pStyle("Heading1"));
// db.docChunk(sampleHtml)
// //var content = db.saveToBase64();
// var content = db.saveToBlob();
// saveAs(content, "example.docx");
--------The download .pptx Code: (fail)
// var pb = new OpenXmlBuilder.PPTXBuilder(OpenXmlB64Templates.pptx, title, created, creator);
// pb.contentSlide({"Title 1":"Delete this slide", "Subtitle 2" : "Delete this slide to ensure that contents are scaled to fit within the slides." }, 1);
// pb.contentSlide({"Title 1":title, "Subtitle 2" : "Created " + created.toString() }, 1);
// pb.contentSlide({"Title 1":"A question", "Content Placeholder 2" : sampleHtml}, 2);
// var pptcontent = pb.saveToBlob();
// saveAs(pptcontent, "example.pptx");
---------There is a error when run the second code "pb.contentSlide(..)....",
---------Error happen:
PPTXBuilder.prototype = {
.....
contentSlide: function(){
....
var shapes = slide.all("//p:sp");
....
}
....
}
.....
all: function() {
return this.xdoc.all.apply(this.xdoc, arguments);
},
--------- The ERROR " this.xdoc is undefined "
================================
Finally, can you help me in top 2 questions.
Or can you give me a html example to download a example.pptx with OpenXmlBuilder.js.
Thank you very much.
The text was updated successfully, but these errors were encountered: