Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Export.PDF.NativePDF.MasterPassword – PB Docs 2022 – PowerBuilder Library

Export.PDF.NativePDF.MasterPassword – PB Docs 2022

Export.PDF.NativePDF.MasterPassword

property (DataWindow object)

Description

Setting that enables you to set a password for changing the
security settings and permissions (copy/print/edit/etc.) of the
generated PDF file, when you use the PDFlib method to save data from a
DataWindow object to a PDF file. Therefore, this master password is also
referred to as owner or permissions password.

Applies to

DataWindow objects

Syntax

PowerBuilder dot notation:

Describe argument:

Parameter

Description

value

(exp) The password for the administration
permissions of the generated PDF file.

The value can
be a string containing at least one character or no more than 37
characters. If more than 37 characters are set, the first 37
characters will be used as the password. The characters must be
printable ASCII characters. Any unprintable ASCII characters
will cause PB dot notation to throw an exception.

Usage

Once you set the master password, the user with the master
password automatically has the permission of opening the file and all
other permissions (such as copying, printing, editing etc.) to the PDF
file.

Once you set the master password, you can further control the
access restrictions of the file, for example, restrict opening the file
by setting the Export.PDF.NativePDF.UserPassword
property, or restrict copying/printing/editing/etc. the file by setting
the Export.PDF.NativePDF.Restrictions
property. If the master password is empty, it indicates no master
password or user password is required to open the file or
copy/print/edit the file (which means any one can open the file and
copy/print/edit the file with no restrictions).

The master password cannot be the same as the user password which
is set by the Export.PDF.NativePDF.UserPassword
property, otherwise SaveAs function will fail and return -1.

This property takes no effect for files created using PDF/A
standard.

Examples

This example sets the user password and the master password, and
saves the data to a file called custom.pdf:

This example uses Modify to set the user password and the master
password:

See also

Export.PDF.Method

Export.PDF.NativePDF.Author

Export.PDF.NativePDF.CustomOrientation

Export.PDF.NativePDF.CustomSize

Export.PDF.NativePDF.ImageFormat

Export.PDF.NativePDF.Keywords

Export.PDF.NativePDF.PDFStandard

Export.PDF.NativePDF.Restrictions

Export.PDF.NativePDF.Subject

Export.PDF.NativePDF.UserPassword

Export.PDF.NativePDF.UsePrintSpec

Print.property


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x