跳過到頁腳內容
打印工具

如何從手機打印 PDF 文件(初學者教程)

使用安卓手機列印 PDF 文件或網頁,可以輕鬆取得重要文件或照片的紙本副本。 無論您是遠端辦公還是家中沒有印表機,都可以使用手機的預設列印服務,透過幾個簡單的步驟輕鬆列印 PDF 檔案。本文將指導您如何使用手機列印 PDF 文件,並介紹相關的列印選項和主題。

從安卓手機列印PDF文件

您可以使用 Google 雲端列印直接從 Chrome 下載 PDF 和網頁,該功能允許使用者從 Android 和 Chrome 連接到印表機。 您也可以使用網頁列印成 PDF 檔案。 如果您想使用任何應用程式列印該文件,請按照以下步驟操作。

第一步:下載PDF檢視器應用程式

要從手機列印 PDF 文件,您需要在裝置上安裝一款 PDF 檢視器應用程式。 Android 和 iOS 平台上都有多種 PDF 檢視器應用程式可供選擇,例如 Adobe Acrobat Reader、Foxit PDF Reader 或 Google Docs。 只需前往應用程式商店,搜尋"Google Apps for PDF Viewer",然後將其下載到您的裝置上即可。

步驟二:開啟PDF文件

安裝好 PDF 檢視器應用程式後,就可以開啟想要列印的 PDF 檔案了。 您可以透過開啟 PDF 檢視器應用程序,然後導航到文件位置來完成此操作。 或者,您也可以直接透過電子郵件或即時通訊應用程式開啟 PDF 檔案。

How to Print PDFs from a Phone - Figure 1: Open PDF

使用 PDF 閱讀器應用程式開啟 PDF 文件

步驟 3:選擇列印選項

開啟 PDF 檔案後,您將看到文件預覽。 從應用程式選單中選擇"列印"。 列印選項可能以印表機圖示或"列印"字樣表示。您可能需要點擊三點圖示並選擇"列印"。

How to Print PDFs from a Phone - Figure 2: Print Option

從所選的 PDF 閱讀器應用程式存取列印功能

第四步:選擇您的印表機

選擇"列印"選項後,系統會提示您選擇印表機。 如果您透過 Wi-Fi 連接到印表機,您應該會看到網路上可用印表機的清單。 選擇您要用來列印 PDF 檔案的印表機。

How to Print PDFs from a Phone - Figure 3: Arrow pointing to printer selection

從可用印表機清單中選擇一台印表機

步驟 5:調整列印設定

在列印 PDF 檔案之前,您可能需要調整一些列印設置,例如份數、頁面範圍或彩色/黑白列印。請務必檢查這些設置,以確保列印的 PDF 檔案符合您的預期。

How to Print PDFs from a Phone - Figure 4: Print Settings

列印前,請為文件指定其他列印設定。

第六步:開始列印

最後,點擊"列印"按鈕開始列印您的PDF檔案。根據文件的大小和複雜程度,列印可能需要一些時間。 使用預設列印服務完成列印後,您應該會得到一份 PDF 文件的紙本副本。

從 iPhone 列印文檔

從 iPhone 裝置列印 PDF 檔案與在 Android 裝置上列印或使用 Google 雲端列印略有不同。 以下是如何從 iPhone 的"分享"選單中列印 PDF 檔案的方法:

  1. 使用"檔案"應用程式或 iPhone 裝置上安裝的任何其他 PDF 檢視器套用開啟要列印的 PDF 檔案。
  2. 點選螢幕左下角的"分享"圖示。
  3. 從可用選項清單中,選擇"列印"選項。

    您的裝置將開始搜尋連接到您 Wi-Fi 網路的附近印表機。 螢幕上應該會顯示可用印表機的清單。

  4. 選擇要使用的印表機,列印設定將顯示在螢幕上。
  5. 依照你的喜好設定列印選項,然後點選"列印"按鈕。

依照這些步驟操作後,您的裝置會將列印作業傳送到印表機,文件應該會開始列印。

IronPrint C# PDF 庫

IronPrint C# PDF 庫是一個功能強大的工具,可用於以程式方式列印 PDF 檔案。 該庫易於使用,並為開發人員提供廣泛的功能,包括在 WebApps、MAUI、Avalonia 等平台上使用自訂設定進行 PDF 列印。

使用 IronPrint 函式庫的優點之一是它可以與 .NET Core 和 .NET Framework 一起使用,這使得它成為使用不同平台的開發人員的多功能選擇。 該程式庫的設計宗旨是簡單易用,開發人員可以使用它來快速實現 PDF 列印流程的自動化。

IronPrint C# PDF 函式庫的特性

IronPrint C# PDF 庫具有多種功能,使其成為開發人員的強大工具。 以下是部分功能特性:

  1. PDF 列印:IronPrint 可用於從任何 .NET 應用程式列印 PDF 檔案。 2.使用對話方塊列印:IronPrint 可以使用列印對話方塊進行列印。 3.自訂列印設定:IronPrint 可用於自訂列印設定。 圖書館提供多種列印選項,包括紙張尺寸、份數和列印品質。 4.取得印表機名稱:IronPrint 可取得印表機名稱,方便您選擇要列印的印表機。

程式碼範例

這裡可以看到支援使用 IronPrint 列印 PDF 的程式碼。

using IronPrint;

// Create a new PrintSettings object to hold print configuration
PrintSettings printSettings = new PrintSettings();
// Set the DPI (dots per inch) for the print output
printSettings.Dpi = 150;
// Specify the number of copies to print
printSettings.NumberOfCopies = 2;
// Set the paper orientation to portrait mode
printSettings.PaperOrientation = PaperOrientation.Portrait;

// Use the Printer class to send the document to the printer
// The "newDoc.pdf" is the file to be printed with the specified print settings
Printer.Print("newDoc.pdf", printSettings);
using IronPrint;

// Create a new PrintSettings object to hold print configuration
PrintSettings printSettings = new PrintSettings();
// Set the DPI (dots per inch) for the print output
printSettings.Dpi = 150;
// Specify the number of copies to print
printSettings.NumberOfCopies = 2;
// Set the paper orientation to portrait mode
printSettings.PaperOrientation = PaperOrientation.Portrait;

// Use the Printer class to send the document to the printer
// The "newDoc.pdf" is the file to be printed with the specified print settings
Printer.Print("newDoc.pdf", printSettings);
Imports IronPrint

' Create a new PrintSettings object to hold print configuration
Private printSettings As New PrintSettings()
' Set the DPI (dots per inch) for the print output
printSettings.Dpi = 150
' Specify the number of copies to print
printSettings.NumberOfCopies = 2
' Set the paper orientation to portrait mode
printSettings.PaperOrientation = PaperOrientation.Portrait

' Use the Printer class to send the document to the printer
' The "newDoc.pdf" is the file to be printed with the specified print settings
Printer.Print("newDoc.pdf", printSettings)
$vbLabelText   $csharpLabel

結論

從行動裝置或 Google 雲端硬碟帳戶列印 PDF 文件是一種隨時隨地列印文件的便捷方式。 無論你使用的是安卓設備還是蘋果設備,操作過程都非常簡單易懂。

對於希望以程式設計方式列印 PDF 檔案的開發人員來說,IronPrint C# PDF 程式庫是一個強大的工具,它提供了一系列可直接列印的功能。 此函式庫設計簡單易用,可與 .NET Core 和 .NET Framework 搭配使用。

IronPrint C# PDF 庫以商業許可形式提供,起價為$799 ,對於希望簡化 PDF 列印流程的企業和個人來說,這是一個經濟實惠的選擇。

總而言之,無論您是從行動裝置列印 PDF 文件,還是希望自動執行 PDF 列印過程,IronPrint C# PDF 庫都是一個強大的工具,可以幫助您快速且有效率地實現目標。

Curtis Chau
技術作家

Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。