Control Methods
Methods of the server control are mentioned below. Each method is explained in detail at its article page. The .NET 4.8 version has few additional methods.
public string ViewFile
public bool ViewFileService
public void CloseFile
public string ApplyWatermark
public Bitmap GetThumbnail
public byte[] ExportToPdf
public string ExportToPng
ViewFile |
Opens a file in the viewer UI. |
ViewFileService |
Opens a file in the viewer without any user interface. Mainly used to call the export methods. |
CloseFile |
Closes a file. |
ApplyWatermark |
Applies a watermark over every page of the file. |
GetThumbnail |
Get thumbnail Bitmap / SKBitmap of a specific page of the file. |
ExportToPdf |
Exports the current file to PDF format. |
ExportToPng |
Exports all or specific pages of the file to PNG image. |
.NET 4.8
public void ShowUI()
ShowUI |
Renders an empty user interface of the viewer with no file being displayed. The user can now choose to open a file. |