网站和系统登录

对于将位于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 刚刚发布