網站與系統登入

對於將位於 HTML 表單和受密碼保護的網站目錄後面的網頁渲染成 PDF 文件,最佳實踐是放棄程式驗證和表單提交,而是直接從本機文件或 HTML 字串渲染標記,如IronPDF 登入程式資源頁面中所述。 然而,在手動存取要轉換的網頁原始碼很麻煩、耗時或不可行的情況下,IronPDF 可以輕鬆無痛地從這些受限區域渲染 PDF 內容。

To convert web pages located behind password-protected directories, specify a set of valid network credentials for IronPDF's PDF Renderer to use with a ChromeHttpLoginCredentials object. Afterward, pass a reference to the ChromeHttpLoginCredentials along with the URL of the password-protected webpage to PdfDocument.renderUrlAsPdf.

了解 Java 的 ChromeHttpLoginCredentials

準備好開始了嗎?
版本: 2025.12 剛發表