Watermark
Watermark text
Specific text watermark settings.
Watermark text examples
USE invoices ORDER customer LOCAL m.loSession, m.lnRetval, m.loXFF, m.loPreview, m.loScripts m.loSession=EVALUATE([xfrx("XFRX#LISTENER")]) m.lnRetVal = m.loSession.SetParams("",,,,,,"XFF") && no name = just in memory IF m.lnRetVal = 0 REPORT FORM invoices OBJECT m.loSession m.loXFF = m.loSession.oxfDocument * * initialize the previewer * SET CLASSLIB TO xfrxlib ADDITIVE m.loPreview = CREATEOBJECT("frmMPPreviewer") m.loPreview.windowType = 0 m.loPreview.iBook = 0 WITH loPreview.oExportOptions .oWM.lShowPreview=.T. .oWM.iMode=1 .oWM.oText.SetText("W A T E R M A R K", ,.T.) .oWM.oText.SetFont("Tahoma", 30, "B") .oWM.oText.SetColor(125, 125, 125) .oWM.SetOrientation("diagonal") ENDWITH m.loPreview.PreviewXFF(loXFF) m.loPreview.show(1) ENDIF
Watermark image
Specific mask settings are intended for either PDF or printing or export to images - restrictions are described below. A mask can be a color (a range of two colors), a clipping mask (a black and white image to which the source image is cropped), or an alpha mask (a grayscale image defining translucency at a specific point in the source image).
Watermark image examples
USE invoices ORDER customer LOCAL m.loSession, m.lnRetval, m.loXFF, m.loPreview, m.loScripts m.loSession=EVALUATE([xfrx("XFRX#LISTENER")]) m.lnRetVal = m.loSession.SetParams("",,,,,,"XFF") && no name = just in memory IF m.lnRetVal = 0 REPORT FORM invoices OBJECT m.loSession m.loXFF = m.loSession.oxfDocument * * initialize the previewer * SET CLASSLIB TO xfrxlib ADDITIVE m.loPreview = CREATEOBJECT("frmMPPreviewer") m.loPreview.windowType = 0 m.loPreview.iBook = 0 WITH loPreview.oExportOptions .oWM.lShowPreview=.T. .oWM.iMode=2 .oWM.oImage.SetImage(FULLPATH("xfrx.jpg"), .T.) .oWM.SetOrientation("diagonal") ENDWITH m.loPreview.PreviewXFF(loXFF) m.loPreview.show(1) ENDIF