URL 到 PDF
将网页 URL 渲染成 PDF 就像向 fromUrl
方法提供 URL 一样简单。这将返回一个可导出或进一步增强 PDF 文档的 PDF 对象。
import {PdfDocument} from "@ironsoftware/ironpdf"; (async () => { // Render the web URL to PDF const pdf = await PdfDocument.fromUrl("https://ironpdf.com/"); // Export the PDF document await pdf.saveAs("url.pdf"); })();
将网页 URL 渲染成 PDF 就像向 fromUrl
方法提供 URL 一样简单。这将返回一个可导出或进一步增强 PDF 文档的 PDF 对象。