Hello,
I created an invoice template with the standalone report designer and I am able to programmatically export a pdf file.
Is it possible to disable copy / paste functionality in the created pdf file programmatically.
Best regards,
Alex
3 Answers, 1 is accepted
I see that it is possible to disable copy paste by setting the deviceInfo OwnerPassword. Unfortunately this also disables printing.
Is disabling copy paste and enabling printing possible?
Hashtable deviceInfo = new Hashtable
{
["OwnerPassword"] = new Guid()Hi Alex,
You may test to include Adobe JavaScript in the deviceInfo that allows printing - PDF Device Information Settings.
Here is a reference to the JavaScript for Acrobat API Reference. For example, on page 283-284 you may find encryptForRecipients - Permissions object. You may try to set allowContentExtraction=false and allowPrinting=highQuality.
Regards,
Todor
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/.
Hi there,
any news on these?
Is it possible to disable copy/paste in the generated pdf file without disabling print?
Anybody succeeded in using deviceinfo javascript property to do this?
Regards, Maurizio
Currently, the JS workaround that my colleague Todor has suggested is the only way to disable the copy/paste without also disabling printing.
Note however that the code example seems to actually be on page 286 - JavaScript for Acrobat API Reference.