RenderOptionsPassword Property
The password of the document to render.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
Syntax
public string Password { get; set; }

Property Value

Type: String
The document password.
Examples
The following example demonstrates how to specify the document password.
C#
ViewerConfig config = new ViewerConfig();
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);

HtmlOptions options = new HtmlOptions();
options.Password = "mypass";

string guid = @"C:\storage\protected.pdf";
List<PageHtml> pages = htmlHandler.GetPages(guid, options);
See Also