Completed
Last Updated: 15 Feb 2022 09:26 by ADMIN
Release R1 2022 SP1
ADMIN
Tanya
Created on: 14 Sep 2016 13:27
Category: PdfProcessing
Type: Feature Request
31
PdfProcessing: Provide API for setting different permissions when exporting encrypted PDF document
This would allow to encrypt documents only with Owner Password and not showing password dialog when disabling some PDF features permissions. The customer should be able to disable printing, text and graphic selection and extraction, page rotations and others. The full specification of all permission bits may be seen in Table 3.20 on page 124 in PdfReference 1.7. On page 120 in PdfReference 1.7 are described the User and Owner passwords.
13 comments
ADMIN
Martin
Posted on: 15 Feb 2022 09:26

Hello Fadi,

I am happy the feature is working as expected in most of the PDF viewers. 

As for the Nitro PDF, I am afraid I cannot suggest anything other than reporting this issue to their support.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Fadi
Posted on: 14 Feb 2022 13:59

You are correct, appears the PDF viewer is the issue.

Nitro PDF is the only one that reports that page extraction is allowed.

ADMIN
Martin
Posted on: 14 Feb 2022 08:12

Hello Fadi,

I tried to reproduce the described behavior with these settings but on my end, it works as expected (check the attached record.gif).

I am attaching the sample project I created in order to test this functionality as well. Please, feel free to modify it in a way closer to your scenario.

Maybe I am missing something in the setup, if so, please let me know. 

On the other hand, it could be document-specific. If so, please open a new ticket and send us a sample document in order to deeper investigate the case. I must assure you we treat all client files in a strictly confidential manner and for testing purposes only.

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Fadi
Posted on: 12 Feb 2022 20:55

Thanks for adding this new feature.

When setting Changing to None, the Page extraction is still enabled.

 _provider.ExportSettings.UserAccessPermissions = new UserAccessPermissions
            {
               Copying = CopyingPermissionType.None,
               Changing = ChangingPermissionType.None,
               Printing = PrintingPermissionType.HighResolution
            };

Attached Files:
ADMIN
Martin
Posted on: 07 Feb 2022 08:07

Hi Hiep,

Indeed, you can set the marked (and not only permissions) with this feature implemented.

You can do this in the following way:

PdfExportSettings settings = new PdfExportSettings();
settings.OwnerPassword = "123";
settings.IsEncrypted = true;
//! This permissions are exported only if settings.IsEncrypted
UserAccessPermissions permissions = new UserAccessPermissions
{
	Printing = PrintingPermissionType.HighResolution,
	Changing = ChangingPermissionType.FormFieldFillingOrSigning,
	Copying = CopyingPermissionType.TextAccess,
};
settings.UserAccessPermissions = permissions;
provider.ExportSettings = settings;
provider.Export(this.fixedDocument, output);

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Hiep
Posted on: 04 Feb 2022 11:06

We can set permissions programmatically for these settings?

 

ADMIN
Peshito
Posted on: 02 Feb 2022 11:45

Hello,

This item will be available in R1 2022 SP1 Release. 

It is also available with Telerik UI for WPF's latest internal build - LIB 2022.2.207 (02 Feb 2021) if you need it earlier. 

Regards,
Peshito
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Dimitar
Posted on: 19 Oct 2021 08:18

Hello Simon,

I am sorry to hear that you need to use a separate library for this.

Your vote is already added. Hopefully, this will be included in our roadmap soon.

Regards,
Dimitar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Simon
Posted on: 18 Oct 2021 10:03

Please add our vote.

We issue digital certificates as secured pdf's which we need to ensure cannot easily be edited by an end user. This seems to be a pretty fundamental omission from the api and means we can't use your library without subsequently passing the output through another utility to implement the required security. 

We have had to revert to a different library until this feature is implemented.

Faraz
Posted on: 29 Jul 2021 14:26

This is important for us. Waiting for it.

ADMIN
Tanya
Posted on: 12 Jan 2021 13:13

Hi all,

The task is not scheduled for implementation in the current release and I am afraid I cannot share any timeframe it might get implemented. Please, make sure to cast your vote for it and continue following it so you can receive updates about status changes on it.

Regards,
Tanya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Fadi
Posted on: 11 Jan 2021 20:35
This is very important for us also.
Hiep
Posted on: 07 Jan 2021 08:11

Hi Tanya,

May i know if this feature will be considered in the near future, thanks.