easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

SecurityExtraction Property

Gets/Sets content extraction permission setting.

prnSecExtractionPerm SecurityExtraction { get; set; }

Property SecurityExtraction As prnSecExtractionPerm

def getSecurityExtraction(self)
def setSecurityExtraction(self, value)

prnSecExtractionPerm getSecurityExtraction() throws PrinterException
void setSecurityExtraction(prnSecExtractionPerm value) throws PrinterException

function getSecurityExtraction() 
function setSecurityExtraction($value) 

BclPrnResult GetSecurityExtraction(BclPrinter* pPrinter,
                                   BclPrnSecExtractionPerm* poutVal);
BclPrnResult SetSecurityExtraction(BclPrinter* pPrinter,
                                   BclPrnSecExtractionPerm newVal);
Property SecurityExtraction As prnSecExtractionPerm

bepprint +Encrypt -extract none|accessibility|full




If you enable any security feature, be sure to set the owner password (through SecurityOwnerPassword property) or the user password (through the SecurityUserPassword property). If you set both passwords, they should be different.

Also bear in mind that if the user password is set but no owner password is specified, the permission flags are ignored and full permissions are granted for all operations. In other words, the permission flags are only respected when there is an owner password.

Note that once security is enabled (by setting the Security property to True), it is important to set the encryption bit length (via the SecurityEncryption property) first before specifying any other security settings. The sample code below illustrates the proper order.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
Set oPDFSetting = oPrintJob.PDFSetting

oPDFSetting.Security = True
oPDFSetting.SecurityEncryption = PRN_SEC_ENCRYPT_128BITS
oPDFSetting.SecurityAnnotation = PRN_SEC_ANNOT_PERM_NONE
oPDFSetting.SecurityExtraction = PRN_SEC_EXTR_PERM_NONE
oPDFSetting.SecurityModification = PRN_SEC_MODIFY_PERM_NONE
oPDFSetting.SecurityPrinting = PRN_SEC_PRINT_PERM_NONE
oPDFSetting.SecurityOwnerPassword = "my_owner_password"
oPDFSetting.SecurityUserPassword = "my_user_password"

oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"