DocumentBuilder icon indicating copy to clipboard operation
DocumentBuilder copied to clipboard

var jsVar = "123.docx"; builder. SaveFile ("docx", jsValue (jsVar)); //run error

Open sdmq opened this issue 1 year ago • 3 comments

Docbuilder.exe V7.3.3 when executed docbuilder file

builder.CreateFile("docx"); var jsVar = "123.docx"; builder. SaveFile ("docx", jsValue (jsVar)); builder.CloseFile();

// run error(error: : save file error (-1073741819))

sdmq avatar Mar 30 '23 10:03 sdmq

Docbuilder.exe V7.4.0 on Windows

var a = "any text"; 
builder.CreateFile("docx");
builder.SaveFile("pdf", "d:\empty.pdf", "");
builder.CloseFile();

error (command): file not opened!

however the following script works

builder.CreateFile("docx");
builder.SaveFile("pdf", "d:\empty.pdf", "");
builder.CloseFile();

NilKu avatar Aug 01 '23 05:08 NilKu

I can confirm - this is bug #59905

askonev avatar Aug 28 '23 18:08 askonev

builder - is needed to NOT use js in the script. Then the script will be executed faster, because it will just be conversion. If js is present, it is easier to write like this (js variables are fully working)

builderJS

builderJS.CreateFile("docx");
var jsVar = "test.docx";
builderJS.SaveFile("docx", jsVar);

askonev avatar Jan 17 '24 11:01 askonev