View Options
Apart from the FileOptions discussed in the previous section there certain properties which decide how the viewer renders.
public int ImageResolution
public string Password
public int TimeOut
public string WatermarkInfo
ImageResolution | integer | Set the resolution of the image that gets rendered in the browser. The default value is 200. |
Password | string | Provide a password to open the password protected file. The default value is "". |
TimeOut | int | Specify the timeout value in minutes. This is the time of inactivity after which the viewer will get disposed. The default value is 60. |
WatermarkInfo | string | Show a watermark in the viewer. The default value is "". |
Watermark
The watermark class has various options which can be set as required.
.NET 4.8 & 6.0 (using System.Drawing)
public string TextMark
public Color Color
public Font Font
public int Opacity
public int Angle
public bool ShowOnCorners
public Bitmap ImageMark
.NET Standard 2.0 (using SkiaSharp)
public string TextMark
public SKColor Color
public SKFont Font
public int Opacity
public int Angle
public bool ShowOnCorners
public SKBitmap ImageMark