Welcome Guest Search | Active Topics | Sign In | Register

PDf Options
mhorrell
Posted: Wednesday, April 8, 2015 3:11:36 PM
Rank: Member
Groups: Member

Joined: 11/2/2011
Posts: 10
Is there a way to set the parameter of the Pdf that is created to Read only. I dont want my user to be able to edit the pdf .
Thanks
eo_support
Posted: Wednesday, April 8, 2015 8:13:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

In order to do so you will need to have a password first. See here for how to set PDF password:

http://www.essentialobjects.com/doc/4/advanced/encryption.aspx

Once you have the password, you can use PdfDocument.Security.Disallow to disallow certain permissions.

With the latest build, you can also use PdfField.ReadOnly property to set just a single field to read only. For example:

Code: C#
//Pre-fill "case_number" field and set it to readonly
PdfField field = doc.Fields["case_number"];
field.Value = "12345678";
field.ReadOnly = true;


Note that PdfField.ReadOnly property did not exist in early builds.

Hope this helps. Please feel free to let us know if you still have any questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.