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.Restrictions – PB Docs 2022 – PowerBuilder Library

Export.PDF.NativePDF.Restrictions – PB Docs 2022

Export.PDF.NativePDF.Restrictions

property (DataWindow object)

Description

Setting that enables you to specify the permission settings that
restrict certain actions (such as copying/printing/editing) of the
generated PDF file, when you use the PDFlib method to save data from a
DataWindow object to a PDF file.

Applies to

DataWindow objects

Syntax

PowerBuilder dot notation:

Describe argument:

Parameter

Description

value

(exp) The password for opening the generated PDF
file.

The value can be a string containing one or
more of the following values (separated by
“,”):

  • noprint! – Acrobat will prevent printing the
    file.

  • nohiresprint! – Acrobat will prevent high-resolution
    printing. If noprint is not set, printing is restricted to
    the print as image feature which prints a low-resolution
    rendition of the page.

  • nomodify! – Acrobat will prevent editing or cropping
    pages and creating or changing form fields.

  • noassemble! – Acrobat will prevent inserting,
    deleting, or rotating pages and creating bookmarks and
    thumbnails.

  • noannots! – Acrobat will prevent creating or
    changing annotations and form fields.

  • noforms! – Acrobat will prevent form field filling.
    (implies nomodify and noannots)

  • nocopy! – Acrobat will prevent copying and
    extracting text or graphics; the accessibility interface
    will be controlled by noaccessible.

  • noaccessible! – (Obsolete in PDF 2.0; not allowed in
    PDF/UA-1) Acrobat will prevent extracting text or graphics
    for accessibility

  • plainmetadata! – (PDF 1.5) Keep XMP document
    metadata unencrypted even in an encrypted document.

Usage

If you set the restrictions of the PDF file, you must also set the
master password by the Export.PDF.NativePDF.MasterPassword
property. There must be a value specified for the restriction property,
otherwise syntax error may occur. If you do not want to set any
restriction, please set Export.PDF.NativePDF.MasterPassword
to empty, which 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).

If you set restrictions without setting the user password, a user
can open the PDF file, and has the permissions specified by the
restriction property.

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

Examples

This example prevents the PDF file being printed and copied, sets
the master password, and saves the data to a file called
custom.pdf:

This example uses Modify to set the restrictions 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.MasterPassword

Export.PDF.NativePDF.PDFStandard

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