I am trying to do a simple merge of two PPTX files using the nodejs SDK, but I am getting the error when executing:
“Error: {“message”:“The type initializer for ‘\u000e\u000f\u0019\u0005’ threw an exception.”,“code”:“internalError”}”
My code:
const documentApi = DocumentApi.fromKeys(appSid, appKey);
let item1 = new JoinItem()
item1.fileInfo = new FileInfo()
item1.fileInfo.filePath = "titleslide.pptx";
let item2 = new JoinItem()
item2.fileInfo = new FileInfo()
item2.fileInfo.filePath = "drsingh.pptx";
let options = new JoinOptions()
options.joinItems = [item1, item2];
options.outputPath = "joined-pages.docx";
let result = await documentApi.join(new JoinRequest(options));
As far as I can tell, this is very similar to the example here:
So what could be the issue? Thanks