圖片轉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 剛剛發布