Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Sun May 15, 2011 9:31 pm

Hi,

In your namespace 'Spire.PDF.Security' you have an enumeration 'PdfPermissionFlags'.

When converting a docx file to PDF through Spire.Doc, is there any way of applying this so that you can set the individual security permissions such as printing, copy information etc? If so can this be achieved without a password having to be entered to open the pdf?

Thanks,

Mark.

markowens
 
Posts: 24
Joined: Mon Mar 14, 2011 3:20 pm

Mon May 16, 2011 2:36 am

Dear markowens,
Thanks for your inqury.
Actually,you can only set PdfPermissionFlags without others .
Like this:
Code: Select all
doc.Security.Permissions = PdfPermissionsFlags.Print | PdfPermissionsFlags.CopyContent;
Justin
Technical Support / Developer,
e-iceblue Support Team
User avatar

Justin Weng
 
Posts: 110
Joined: Mon Mar 28, 2011 5:54 am

Mon May 16, 2011 8:28 am

Hi Justin,

But I cannot see 'Security' in the 'Spire.Doc' namespace?

Thanks, Mark.

markowens
 
Posts: 24
Joined: Mon Mar 14, 2011 3:20 pm

Tue May 17, 2011 2:17 am

Sorry markowens !It's not supported in Spire Doc.
Justin
Technical Support / Developer,
e-iceblue Support Team
User avatar

Justin Weng
 
Posts: 110
Joined: Mon Mar 28, 2011 5:54 am

Return to Spire.Doc