InDesignServer - All Layers are allways unlocked
Hello,
i have an issue reading the locked state of InDesign Document Layers. Everytime i open a document on the server all layers are unlocked and i can not read the lock value set by the user.
I tested this behaviour with a small scripts against all Versions i have acess to. For InDesignServer 2020 the lock is correctly returned. For 2021 and 2022 the locked value is always false.
If i open a document on the server and save it, the unlock will be saved. The same document will show no locked layer in InDesign (Desktop), even if all layers were previously locked.
This is the script i used to test this: (Prints to the EventLog)
var file = new File("C:/Test/Test.indd");
var doc = app.open(file);
for (var i = 0; i < doc.layers.length; i++) {
var layer = doc.layers[i];
app.consoleout("Layer " + layer.name + " Locked: " + layer.locked + " Visible: " + layer.visible);
}
doc.close(SaveOptions.YES);
Do i miss something? Is there maybe a configuration option on the application?
