PrintDocumentToFile
算繪和列印
說明
本頁介紹 PDFlibPas 中屬於「算繪和列印」主題的 PrintDocumentToFile。API 名稱、參數、類別名稱、檔案名稱和字面值保持原樣,以便和 Delphi 函式庫及 DLL 進入點完全對應。
呼叫函式前請查看語法、參數和傳回值。程式碼區塊保留原始形式,便於範例直接複製使用。
呼叫函式前請查看語法、參數和傳回值。程式碼區塊保留原始形式,便於範例直接複製使用。
語法
Delphi
Function TPDFlib.PrintDocumentToFile(Const PrinterName: WideString; StartPage, EndPage, Options: Integer; Const FileName: WideString): Integer;
ActiveX
Function PDFlib::PrintDocumentToFile(PrinterName As String, StartPage As Long, EndPage As Long, Options As Long, FileName As String) As Long
DLL
int DLPrintDocumentToFile(int InstanceID, const wchar_t * PrinterName, int StartPage, int EndPage, int Options, const wchar_t * FileName);
參數
| PrinterName | PrinterName 是 PrintDocumentToFile 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。 |
|---|---|
| StartPage | StartPage 識別目前 PDF 文件中的頁面或頁面參照。 |
| EndPage | EndPage 識別目前 PDF 文件中的頁面或頁面參照。 |
| Options | Options 是用於調整呼叫行為的位元遮罩或數值選項。 |
| FileName | FileName 表示檔案路徑或檔案名稱。請為目前流程使用有效路徑,並保留 API 預期的編碼。 |