EncodePermissions

安全性和簽章

說明

本頁介紹 PDFlibPas 中屬於「安全性和簽章」主題的 EncodePermissions。API 名稱、參數、類別名稱、檔案名稱和字面值保持原樣,以便和 Delphi 函式庫及 DLL 進入點完全對應。

呼叫函式前請查看語法、參數和傳回值。程式碼區塊保留原始形式,便於範例直接複製使用。

語法

Delphi

Function TPDFlib.EncodePermissions(CanPrint, CanCopy, CanChange, CanAddNotes, CanFillFields, CanCopyAccess, CanAssemble, CanPrintFull: Integer): Integer;

ActiveX

Function PDFlib::EncodePermissions(CanPrint As Long, CanCopy As Long, CanChange As Long, CanAddNotes As Long, CanFillFields As Long, CanCopyAccess As Long, CanAssemble As Long, CanPrintFull As Long) As Long

DLL

int DLEncodePermissions(int InstanceID, int CanPrint, int CanCopy, int CanChange, int CanAddNotes, int CanFillFields, int CanCopyAccess, int CanAssemble, int CanPrintFull);

參數

CanPrintCanPrintEncodePermissions 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。
CanCopyCanCopyEncodePermissions 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。
CanChangeCanChangeEncodePermissions 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。
CanAddNotesCanAddNotesEncodePermissions 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。
CanFillFieldsCanFillFieldsEncodePermissions 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。
CanCopyAccessCanCopyAccessEncodePermissions 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。
CanAssembleCanAssembleEncodePermissions 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。
CanPrintFullCanPrintFullEncodePermissions 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。

傳回值

EncodePermissions 的參數。請使用簽章中顯示的型別,並提供與目前 PDF 文件、所選頁面或作用中資源一致的值。