PHP 클래스 FPDF_Protection, TeamPass

상속: extends tFPDF
파일 보기 프로젝트 열기: nilsteampassnet/TeamPass 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$Ovalue U entry in pdf document
$Pvalue O entry in pdf document
$Uvalue whether document is protected
$enc_obj_id P entry in pdf document
$encrypted

공개 메소드들

메소드 설명
SetProtection ( $permissions = [], $user_pass = '', $owner_pass = null ) Function to set permissions as well as user and owner passwords
_Ovalue ( $user_pass, $owner_pass ) Compute O value
_Uvalue ( ) Compute U value
_generateencryptionkey ( $user_pass, $owner_pass, $protection ) Compute encryption key
_md5_16 ( $string ) Get MD5 as binary string
_objectkey ( $n ) Compute key depending on object number where the encrypted data is stored
_putencryption ( )
_putresources ( )
_putstream ( $s ) ************************************************************************** * Private methods * * **************************************************************************
_puttrailer ( )
_textstring ( $s )

메소드 상세

SetProtection() 공개 메소드

- permissions is an array with values taken from the following list: copy, print, modify, annot-forms If a value is present it means that the permission is granted - If a user password is set, user will be prompted before document is opened - If an owner password is set, document can be opened in privilege mode with no restriction if that password is entered
public SetProtection ( $permissions = [], $user_pass = '', $owner_pass = null )

_Ovalue() 공개 메소드

Compute O value
public _Ovalue ( $user_pass, $owner_pass )

_Uvalue() 공개 메소드

Compute U value
public _Uvalue ( )

_generateencryptionkey() 공개 메소드

Compute encryption key
public _generateencryptionkey ( $user_pass, $owner_pass, $protection )

_md5_16() 공개 메소드

Get MD5 as binary string
public _md5_16 ( $string )

_objectkey() 공개 메소드

Compute key depending on object number where the encrypted data is stored
public _objectkey ( $n )

_putencryption() 공개 메소드

public _putencryption ( )

_putresources() 공개 메소드

public _putresources ( )

_putstream() 공개 메소드

************************************************************************** * Private methods * * **************************************************************************
public _putstream ( $s )

_puttrailer() 공개 메소드

public _puttrailer ( )

_textstring() 공개 메소드

public _textstring ( $s )

프로퍼티 상세

$Ovalue 공개적으로 프로퍼티

U entry in pdf document
public $Ovalue

$Pvalue 공개적으로 프로퍼티

O entry in pdf document
public $Pvalue

$Uvalue 공개적으로 프로퍼티

whether document is protected
public $Uvalue

$enc_obj_id 공개적으로 프로퍼티

P entry in pdf document
public $enc_obj_id

$encrypted 공개적으로 프로퍼티

public $encrypted