THotPDF.DAOpenFileReadOnly Method

以唯讀模式開啟直接存取(Direct Access)的 PDF 檔案。

宣告

function DAOpenFileReadOnly(const InputFileName: TFileName; const Password: AnsiString= ''): Integer;

單元

HPDFDoc

參數

名稱用途
InputFileName要開啟的 PDF 檔案名稱。
Password開啟加密檔案時所需的密碼。

傳回值

傳回檔案控制代碼索引,失敗則傳回小於 0 的值。

使用說明

相關 API