Closed sdmq closed 1 month ago
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();
I can confirm - this is bug #59905
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.CreateFile("docx");
var jsVar = "test.docx";
builderJS.SaveFile("docx", jsVar);
If you do not run the js interpreter (for faster script execution) then the correct code is
builder.CreateFile("docx");
var jsVar = "test.docx";
builder.SaveFile("docx", "jsValue(jsVar)");
I close this issue. Feel free to comment or reopen it if you got further questions.
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))