thanks for the cool module! 👍
I am trying to use this module for a pptx template. However, the tag {^link} stays unchanged because this.linkManager.maxRid in the index.js is undefined. The reason is in the linkManager.js, row 26, you have hardcoded the file path file = loadFile("word/_rels/" + this.endFileName + ".xml.rels") || loadFile("word/_rels/document.xml.rels"); which is different for pptx. I guess, you should just add the ppt alternatives: file = loadFile("word/_rels/" + this.endFileName + ".xml.rels") || loadFile("word/_rels/document.xml.rels") || loadFile("ppt/_rels/" + this.endFileName + ".xml.rels") || loadFile("ppt/_rels/presentation.xml.rels");
The second part of the issue I have was on row 58: stylePath = "word/styles.xml";. Do you know which is the correct file for pptx? I am stuck on this.
Hey @sujith3g,
thanks for the cool module! 👍 I am trying to use this module for a pptx template. However, the tag {^link} stays unchanged because
this.linkManager.maxRid
in theindex.js
is undefined. The reason is in the linkManager.js, row 26, you have hardcoded the file pathfile = loadFile("word/_rels/" + this.endFileName + ".xml.rels") || loadFile("word/_rels/document.xml.rels");
which is different for pptx. I guess, you should just add the ppt alternatives:file = loadFile("word/_rels/" + this.endFileName + ".xml.rels") || loadFile("word/_rels/document.xml.rels") || loadFile("ppt/_rels/" + this.endFileName + ".xml.rels") || loadFile("ppt/_rels/presentation.xml.rels");
The second part of the issue I have was on row 58:
stylePath = "word/styles.xml";
. Do you know which is the correct file for pptx? I am stuck on this.Thanks in advance!