API Reference > OdExport Classes > TD_PDF_2D_EXPORT Namespace > Classes > Watermark Structure
Watermark Structure
Syntax
C++
struct Watermark { enum WatermarkFonts { kTimesRoman, kHelvetica, kCourier, kSymbol, kTimesBold, kHelveticaBold, kCourierBold, kZapfDingbats, kTimesItalic, kHelveticaOblique, kCourierOblique, kTimesBoldItalic, kHelveticaBoldOblique, kCourierBoldOblique }; enum WatermarkPosition { kLeftToRight, kUpperLeftToLowerRight, kLowerLeftToUpperRight, kUpperLeft, kUpperRight, kLowerRight, kLowerLeft }; OdString text; ODCOLORREF color; OdUInt16 fontSize; OdUInt16 opacity; WatermarkFonts font; WatermarkPosition position; bool scaleToPage; };

PdfExportParams.h

A set of parameters for adding a watermark annotation to the output PDF file.

 
Name 
Description 
 
Creates a new watermark annotation object with default parameters. 
 
Name 
Description 
 
Watermark text color (default value is black). 
 
font 
Watermark text font (default value is kTimesRoman). 
 
Watermark text font size (default value is 48). 
 
The level of the watermark's opacity (in percents from 0 to 100; the default value is 50). 
 
Watermark text direction (default value is kLeftToRight). 
 
The fit to page flag.The flag determines whether the watermark is scaled to fit the page.Font size is recalculated(default value is false). 
 
text 
Watermark text. 
 
Name 
Description 
 
Enumerates fonts, which can be used in a watermark annotation. 
 
Enumerates available positions for the watermark annotation. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.