Allows to set a credentials to work with password protected HTML documents, e.g. set userName and password

Namespace:  SautinSoft
Assembly:  SautinSoft.PdfVision (in SautinSoft.PdfVision.dll) Version:


 C#  Visual Basic 
public CookieContainer Cookies { get; set; }
Public Property Cookies As CookieContainer


SautinSoft.PdfVision v = new SautinSoft.PdfVision();
string url = "";
CookieContainer myCookies = new CookieContainer();
Cookie userName = new Cookie("username", "bob");
myCookies.Add(new Uri(url), userName);
Cookie password = new Cookie("password", "bobpassword");
myCookies.Add(new Uri(url), password);
v.Cookies = myCookies;

See Also