在生產環境中測試,無水印。
在任何需要的地方都能運行。
獲得 30 天的全功能產品。
在幾分鐘內上手運行。
試用產品期間完全訪問我們的支援工程團隊
色彩繽紛的 PDF 視覺上很吸引人,但在某些情況下,更偏愛灰階方法。 列印灰階文件不僅節省墨水,還能提供經典且專業的外觀。 灰度圖像通常能突出更細緻的細節,使其適合具有複雜設計或精細圖形的文件。
在本文結束時,您將學會兩種簡單快速的方法將您的 PDF 文件轉換為灰階:使用Adobe Acrobat或IronPDF 的 PDF 灰階轉換功能。
安裝 Adobe Acrobat。
在 Adobe Acrobat 中打開您的 PDF 文件。
點擊「檔案」並選擇「列印」以打開「列印」選單。
在列印設定中,選中「以灰階列印」複選框。
Adobe Acrobat 可以從Adobe 的官方下載頁面輕鬆安裝。
按下下載按鈕開始下載過程。
一旦下載 .EXE,雙擊它以在您的機器上安裝 Adobe Acrobat。
使用 Adobe Acrobat 打開您的 PDF 文件。 安裝後,PDF 文件將自動預設使用 Adobe Acrobat 開啟。
一旦打開 PDF,導航至「列印」選項。
在列印設定視窗中,選擇「以灰階列印」核取方塊來轉換 PDF。 預覽會出現在視窗的右側。
現在您已將 PDF 轉換為灰階,查看新創建的文件。原本有顏色的元素現在變成了黑白:
減少檔案大小:灰階圖像通常具有較小的檔案大小,使其更易於分享和儲存。
易於列印:列印灰階 PDF 消耗較少的墨水或碳粉,使其成為更經濟且環保的選擇。
專注於更細緻的細節:灰階圖像經常強調錯綜的細節,非常適合帶有複雜圖形的文件。
Adobe Acrobat 提供許多可通過左側面板訪問的編輯功能:
其他工具也可用:
IronPDF 是由 Iron Software 開發的簡單且快速的 PDF 庫。
可以在 Visual Studio 中使用IronPDF NuGet 套件安裝 IronPDF。
在 NuGet 套件管理器中搜索 "IronPdf" 以安裝。
在套件管理器控制台中運行以下命令:
Install-Package IronPdf
Install-Package IronPdf
這是一個示例,展示了如何使用 IronPDF 的擴展渲染選項生成灰階 PDF:
using IronPdf;
// Disable local disk access or cross-origin requests
Installation.EnableWebSecurity = true;
// Instantiate Renderer
var renderer = new ChromePdfRenderer();
// Render a PDF from an HTML string
var pdf = renderer.RenderHtmlAsPdf("https://onlinetestcase.com/wpcontent/uploads/2023/06/1-MB.pdf");
// Convert to grayscale
renderer.RenderingOptions.GrayScale = true;
// Save the PDF file
pdf.SaveAs("pdfoutput.pdf");
using IronPdf;
// Disable local disk access or cross-origin requests
Installation.EnableWebSecurity = true;
// Instantiate Renderer
var renderer = new ChromePdfRenderer();
// Render a PDF from an HTML string
var pdf = renderer.RenderHtmlAsPdf("https://onlinetestcase.com/wpcontent/uploads/2023/06/1-MB.pdf");
// Convert to grayscale
renderer.RenderingOptions.GrayScale = true;
// Save the PDF file
pdf.SaveAs("pdfoutput.pdf");
Imports IronPdf
' Disable local disk access or cross-origin requests
Installation.EnableWebSecurity = True
' Instantiate Renderer
Dim renderer = New ChromePdfRenderer()
' Render a PDF from an HTML string
Dim pdf = renderer.RenderHtmlAsPdf("https://onlinetestcase.com/wpcontent/uploads/2023/06/1-MB.pdf")
' Convert to grayscale
renderer.RenderingOptions.GrayScale = True
' Save the PDF file
pdf.SaveAs("pdfoutput.pdf")
以下是使用 IronPDF 呈現為灰階的範例文件:
IronPDF需要許可證金鑰。 在appsettings.json
檔案中插入密鑰:
"IronPdf.LicenseKey": "your license key goes here"
"IronPdf.LicenseKey": "your license key goes here"
'INSTANT VB TODO TASK: The following line uses invalid syntax:
'"IronPdf.LicenseKey": "your license key goes here"
Iron Software.com 提供免費試用授權,您可以透過其授權頁面申請獲得。
將 PDF 轉換為灰度是一項多功能技能,可提升文件的質量和可用性。 無論您使用 Adobe Acrobat、IronPDF 或其他工具,過程都很簡單。 通過學習不同的方法將 PDF 轉換為灰階,您可以根據各種需求優化文檔,例如使用 IronPDF 打印功能無色打印 PDF 文件或利用 IronPDF 壓縮功能減少 PDF 文件大小。
IronPDF 是一款功能強大且高效的工具,適合開發者用來讀取、編寫和操作 PDF 檔案。