图像到PDF

给定位于计算机上的单个图像C:\images\example.png,您可以通过调用IronPdf.ImageToPdfConverter.ImageToPdf方法并传入其文件路径快速将其转换为PDF文档。

您还可以使用System.IO.Directory.EnumerateFilesImageToPdfConverter.ImageToPdf将多个图像转换为单个PDF文档。

To explore more about converting images to PDFs using IronPDF for enhancing your applications, or to discover the entire suite of developer tools offered by Iron Software, including IronBarcode, IronOCR, and more, visit the Iron Software website.

学习使用IronPDF将图像转换为PDF

准备开始了吗?
Nuget 下载 16,154,058 | 版本: 2025.11 刚刚发布