Configure Watermark Printing

You can configure watermark text to appear on hard copies made with the Meridian viewer, similar to the following figure. These watermarks are typically used to describe the circumstances of a document, such as who has printed the document or when it was printed. For this reason, they may be described as dynamic watermarks.

To configure static watermarks related to the content of a document, see Configure Rendition Watermarks.

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 because it is invoked immediately before printing occurs.

Note:

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, frame, and title similar to those in the preceding figure.

Note:

vbCrLf can only be used with TitleText, not with Text.

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"
    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
Note:

When watermark properties are processed by AutoVue, the following limitations apply:

  • 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.