THotPDF.ProtectOptions 속성

 

THotPDF.ProtectOptions

THotPDF

 

Top  Previous  Next

Determines PDF file protection options.

 

type

THPDFProtection = (prPrint, prModifyStructure, prInformationCopy, prEditAnnotations, prPrint12bit, prFillAnnotations, prExtractContent, prAssemble);

 

Delphi syntax:

property ProtectOptions: THPDFProtection;

 

C++ syntax:

__property THPDFProtectOptions ProtectOptions;

 

Description

사용자 접근 권한으로 문서를 열 때 허용되는 보호 옵션을 정하려면 ProtectOptions를 사용하세요.

 

Value                Meaning


prPrint                인쇄 허용(권한 비트 3). prPrint12bit가 없으면 뷰어가 인쇄를 저품질 표현으로 제한할 수 있습니다.

prModifyStructure        문서 내용 수정 허용.

prInformationCopy        Allow copy information about the document.

prEditAnnotations        Allow edit the annotation text.

prPrint12bit                최대 품질로 인쇄 허용(권한 비트 12). prPrint와 함께 있을 때만 효력이 있으며, prPrint가 없으면 문서를 전혀 인쇄할 수 없습니다.

prFillAnnotations        Allow add or modify text annotations.

prExtractContent        문서에서 텍스트와 그래픽 복사 등 추출 허용.

prAssemble                문서 조립 허용(페이지 삽입, 회전, 삭제 및 북마크나 썸네일 이미지 생성).

 

Code Example

HPDF.OwnerPassword := 'password';          // Set owner password (required to change security settings)
HPDF.UserPassword := 'user';               // Set user password (required to open the document)
HPDF.ProtectOptions := [prPrint, prInformationCopy]; // Allow printing and copying only
HPDF.ActivateProtection := true;           // Enable PDF security

 

See also: ActivateProtection, CryptKeyLength, OwnerPassword, UserPassword