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.

Watermark options
Property Type Description

Angle

Long

The angle of the watermark text in degrees.

Color

String

The color of the watermark text, specified as an AS_WATERMARK_COLORS constant.

Font

String

The font of the watermark text. Can be any installed Windows font.

FrameWidth

Long

The width of a line framing the printed page.

Size

Long

The font size of the watermark text in points.

Style

Long

The position of the watermark text on the printed page using one or more AS_WATERMARK_STYLES constants. To combine style options, use the Or operator.

Text

String

The watermark text to print.

TitleFont

String

The font of the title text. Can be any installed Windows font.

TitleFontSize

Long

The font size of the title text in points.

TitleStyle

Long

The position of the title text on the printed page using one or more AS_WATERMARK_TITLESTYLES constants. To combine style options, use the Or operator. You can specify only one title. You cannot print one title in the header and another title in the footer.

TitleText

String

The title text to print. Title text is always printed in black.

Transparency

Long

The transparency of the watermark text in percent.

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.

2021 R2