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