Accruent Meridian Enterprise Server 2019 Administrator's Guide
Configuring watermark printing
You can configure watermark text to appear on hard copies made with the AutoVue Client/Server deployment viewer, similar to the following figure.
This can be useful to indicate unapproved drawings, expiration dates, time stamps, and so on. You can configure the following characteristics of watermarks:
- Text, which can include property values
- Font, size, color, and transparency of the text
- Position on the printed page and angle of the text
- Title text to appear as the header or footer of the printed page
The watermark options are set with VBScript in the DraftPrint_SetWaterMark event procedure. It is defined in the source vault configuration and is invoked immediately before printing occurs. For more information on customizing event procedures, see the Accruent Meridian Enterprise VBScript API Reference.
- The DraftPrint_SetWaterMark event procedure performs the same function for AutoVue in Meridian Explorer as the DocGenericEvent_BeforePrint procedure performs for AutoVue in Meridian Enterprise. The procedures can configure the same watermarks or they can configure different watermarks.
- These watermarks appear on hard copy output from the viewer and are independent of watermarks that can be added to renditions by Accruent Publisher as described in the Accruent Publisher Administrator’s Guide.
- The settings Enable draft print and Enable watermarks on draft print hardcopies must be set to True as described in Configuring the application options.
Watermarks use the Client.Viewer.Watermark properties described in the following table. You do not have to use all of the properties, only the ones necessary to produce the results you want.
Following is an example event procedure that incorporates all of the watermark properties and produces a watermark and title similar to those in the preceding figure.
Sub DraftPrint_SetWaterMark()
Client.Viewer.WaterMark.Angle = 45
Client.Viewer.WaterMark.Font = "Arial"
Client.Viewer.WaterMark.Size = 36
Client.Viewer.WaterMark.Text = "NOT FOR USE" & vbCrLf & "UNCONTROLLED DOCUMENT"
Client.Viewer.WaterMark.TitleFont = "Arial"
Client.Viewer.WaterMark.TitleFontSize = 10
Client.Viewer.WaterMark.TitleStyle = AS_WMTS_CENTRED Or AS_WMTS_HEADER
Client.Viewer.WaterMark.TitleText = "Printed by: " & User.FullName & " on: " & DateValue(Today)
End Sub
When watermark properties are processed by AutoVue, the following limitations apply:
- All values for Color are converted to gray
- Values for Angle other than 0, 90, 180, and 270 are converted to diagonal
- All values for Transparency are ignored and watermarks are printed semi-transparent
- All values of Style that specify positioning are ignored and watermarks are centered on the page
- Frames (AS_WMS_DRAWFRAME constant) are not supported
- TitleText is converted to header text unless it includes the special markup tags <H></H> that enclose the header text and <F></F> that enclose the footer text.