Class RtfProtection
- Namespace
- iTextSharp.text.rtf.document
- Assembly
- iTextSharp.LGPLv2.Core.dll
RtfProtection See ECMA Specification for WordprocessingML documentProtection element. Reference: Standard ECMA-376 1st Edition / December 2006 Office Open XML File Formats @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public static class RtfProtection
- Inheritance
-
RtfProtection
- Inherited Members
Fields
AUTOFMTOVERRIDE
STYLELOCKBACKCOMP Allow AutoFormat to override styles and formatting restrictions. When style protection is on, the user cannot add direct formatting. This setting allows AutoFormat actions to apply direct formatting when needed. @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public const int AUTOFMTOVERRIDE = 8
Field Value
LEVEL_ANNOTPROT
ANNNOTPROT Mutually exclusive This document is protected for comments (annotations). The user cannot edit the document but can insert comments (annotations). @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public const int LEVEL_ANNOTPROT = 2
Field Value
LEVEL_FORMPROT
FORMPROT Mutually exclusive Document is protected for forms. see also \allprot (forms controlword) @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public const int LEVEL_FORMPROT = 4
Field Value
LEVEL_NONE
Default for protection level. @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public const int LEVEL_NONE = 0
Field Value
LEVEL_READPROT
READPROT Mutually exclusive but can be combined with ANNOTPROT for backward compatibility Document is protected for editing, except areas marked as exceptions by \protstart and\protend @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public const int LEVEL_READPROT = 8
Field Value
LEVEL_REVPROT
REVPROT Mutually exclusive This document is protected for revisions. The user can edit the document, but revision marking cannot be disabled. @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public const int LEVEL_REVPROT = 1
Field Value
STYLELOCK
STYLELOCK The document contains styles and formatting restrictions. @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public const int STYLELOCK = 1
Field Value
STYLELOCKBACKCOMP
STYLELOCKBACKCOMP Style lockdown backward compatibility flag, indicating we emitted protection keywords to get documents with styles and formatting restrictions to behave in a reasonable way when opened by older versions. @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public const int STYLELOCKBACKCOMP = 4
Field Value
STYLELOCKENFORCED
STYLELOCKENFORCED The styles and formatting restrictions are being enforced. @since 2.1.1 @author Howard Shank (hgshank@yahoo.com)
public const int STYLELOCKENFORCED = 2
Field Value
Methods
GenerateHash(string)
generateHash generates the password hash from a clear text string. @author Howard Shank (hgshank@yahoo.com) @since 2.1.1
public static string GenerateHash(string pwd)
Parameters
pwd
stringClear text string input
Returns
- string
hex encoded password hash