Security

Applies to

PDFDocument

Description

Gets or sets the security property of the PDF document.

Datatype

PDFSecurity

Usage

You can set the security property for the PDF document as follows:

PDFDocument lpdf_doc
long ll_return,ll_return1

lpdf_doc = Create PDFDocument

lpdf_doc.security.masterpassword = "appeon"
lpdf_doc.security.userpassword = "appeon123"
lpdf_doc.security.allowannotations = true
lpdf_doc.security.allowassemble = true
lpdf_doc.security.allowcopy = true
lpdf_doc.security.allowforms = true
lpdf_doc.security.allowhighresolutionprint = true
lpdf_doc.security.allowmodify = true
lpdf_doc.security.allowplainmetadata = true
lpdf_doc.security.allowprint = false

ll_return = lpdf_doc.importpdf( "D:\noannotsnoPwd.pdf")
ll_return1 = lpdf_doc.save( "D:\security.pdf")

destroy lpdf_doc