Breadcrumbs

Give it a try

Intro

PDF Region Pro can limit access to documents at the RESTful Service level. You can define permissions for creating, reading, updating, saving as, renaming, printing, and exporting documents.

Create a package function that returns a colon-separated list of permissions. Specify the package in the Custom PL/SQL Package Name attribute and provide the function name by setting the g_doc_func_file_perm global variable in the Initialization PL/SQL Code:

uc_pdf_region_pro.g_doc_func_file_perm  := 'uc_pdf_region_pro_sample_app_util.p220_fn_get_permissions';

You can see an example in the uc_pdf_region_pro_sample_app_util.p220_fn_get_permissions package.

Notice about creating files

When your PDF Region Pro file creation Settings are enabled, but the permissions returned from the custom PL/SQL function disallow file creation, the new file panel will be displayed. This happens because the function returning the permissions is executed only when the end-user requests to create a new file.

Check also

If you don't need to specify permissions per user, you can use the Settings attribute to enable or disable file creation, exporting, printing, or renaming documents. You can learn more in the documentation.

Demo