Can I set level of AllowCopy and AllowEdit?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v11)  /  Can I set level of AllowCopy and AllowEdit?

DynamicPDF CoreSuite for .NET (v11) Forum

Copying of PDF can be restricted in the following three ways:
1. Do not allow copy
2. Text access for screen reader devices for the visually impaired
3. Copying of text, images and other content
AllowCopy include all of them?

Editing of PDF can be restricted in the following three ways:
1. Do not allow edit
2. Inserting, Deleting and Rotating pages
3. Filling in form fields and signing existing signature fields
4. Any except extracting pages.

AllowEdit include 1, 2, 4?

Posted by a ceTe Software moderator
Hi,

You can restrict copying text or images from PDF by setting the AllowEdit and AllowCopy properties of a Security object to false.

You can restrict form filling by setting the AllowUpdateAnnotsAndFields property to false.

The other way is to set an owner password. this will not allow users to edit or copy the contents until they specify the correct owner password. There is no option available in DynamicPDF Core Suite for .NET to stop rotating pages, text access for screen reader devices for the visually impaired using the Security object.

Text access for screen reader devices for the visually impaired is logical structure content and you can suppress this in the output PDF by setting LogicalStructure property of MergeOptions to false.

Here is a code sample.

            MergeOptions options = new MergeOptions();
            options.LogicalStructure = false;
            PdfDocument pdf = new PdfDocument(@"Input PDF file path");
            MergeDocument document = new MergeDocument(pdf, options);
            document.Draw(@"Output PDF file path");

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 9:48 PM.