Kerberos
如何使 UrlToPdf 與 Kerberos 認證一起工作?
請嘗試在渲染設置中設置使用者名稱和密碼:
https://ironpdf.com/object-reference/api/IronPdf.ChromeHttpLoginCredentials.html
我們建議使用 系統.Net.HttpClient 下載 HTML 並在之後渲染。
這裡有關於使用 Kerberos 下載頁面的線上指南:
https://stackoverflow.com/questions/56182076/how-does-the-system-net-http-httpclient-select-authentication-type
您可以使用 HTML Agility Pack 來解析任何 HTML 並確保所有必要的資產都已下載。