I'm not getting that DB problem with the long string, but yes the length must be checked and trimmed to an acceptable value.
Are you suggesting we should always check that in our scripts before commiting changes?
And why not? But no, the trim will be done internally.
Can failed file reading (or any other situation) pervent us from using "DB Only" option for saving changes with: CommitChanges(false) ? Correct me if I'm wrong but CommitChanges(false) stands for "DB only" option for changes.
No. As long a DB entry exists for the related file, the DB only metadata update will work just fine without checking for/touching the file itself.
By the way, how can we get the PDFe current main window size in pixels?
I'm not aware of any ready available way to do it from a Active Scripting script, at least without the help of a third-party COM control, or a script engine with the functionality built-in (i.e. I'm sure it can be done with the ActivePython engine).
You may use this trick to get the full screen resolution.
var objIE = new ActiveXObject("InternetExplorer.Application");
objIE.Visible = false;
objIE.fullscreen = true;
var width = objIE.width;
var height = objIE.height;
objIE.Quit();
pdfe.echo(width + "x" + height);