59
40
If this returns true, the user will be allowed to edit. If it is
false, display the message “This file is
currently being edited by another user!” and return to previous view.
Similarly an Unlock operation (after save or discard) will also be called.
Void CustomClass.UnLock(string FileName)
Note : On a normal save, save the images, calls unlock and returns to thumbnail view of the original
file name (if splits occurred, it will be the new image of the original file name).
13.10 Secure Redactions.
By default, black-
box annotations (“Redaction”) is not actually “burnt”
into the image displayed in the
browser or PDF file, but is added as a separate layer. For security, it is possible to configure TIFF
Server in two alternate ways to securely hide the redacted area.
Option 1
–
The underlying TIFF file is not changed, but Images delivered to users who do not have
permission to edit redactions will have the redaction burnt-in to both the browser images and generated
PDF files.
This can be done by setting ts_secure_redaction=true in the config.inc file. This feature is only
available with the .NET backend.
Option 2
–
The underlying TIFF file is actually changed with the area defined by the redaction
annotation. This can be performed by using the “Permanently Redact TIFF File” menu button.
To
enable use of the button set
var menu_annots_perm_red=true;
in the config.inc file. It is
also possible to configure an archive folder, where copies of files prior to redaction are saved. This can
be done by setting
var redaction_arch_folder="[archive folder location]"
in
config.inc. Archived files are named timestampname.tif where name.tif is the original file name.
Option 3
–
The underlying TIFF file is actually changed with the area defined by the redaction
annotation, using a command line tool rather than the TIFF Server interface. The executable
burnredaction.exe is in the TIFF Server bin folder.
burnredaction.exe tiff_file annotation_file archive_folder
A copy of the image will be saved to the folder defined by e. If archive_folder is not specified to a
copy will not be saved. The copied file will be named %timestamp%filename where %timestamp is
the current time and %filename is the original filename.
13.11 Error and Informational Messages
13.11.1 Browser Alert Messages
All alert messages can be customized, suppressed or replaced with alternate functionality by editing the
messages.js file
13.11.2 Server Messages
By default, in the event of an error processing an image, a detailed diagnostic error message is
displayed in place of the image, and the message is also logged in the TIFF Server log file. It is
possible to define a generic message via
genericErrorMessage
in config_ui.inc that will be
displayed to the user instead. [The full message is always written to the log file]. The default setting is
“” which indicates that the detailed m
essage is shown.
A generic error message can be configured as shown in the following example :
var genericErrorMessage="There is a problem displaying this page. A
message has been written to the log file.";